summaryrefslogtreecommitdiff
path: root/ale_linters/java/checkstyle.vim
diff options
context:
space:
mode:
authorFrederick Zhang <frederick888@tsundere.moe>2021-07-04 22:31:00 +1000
committerGitHub <noreply@github.com>2021-07-04 21:31:00 +0900
commitafcbd1620e741a98a2952b5e7bfd0dd2bdda2c7a (patch)
tree6937088046ee42f88e5d42daf846ae367867a5a2 /ale_linters/java/checkstyle.vim
parent9efa96eb9431e43e183a73f91db4c84126880a15 (diff)
downloadale-afcbd1620e741a98a2952b5e7bfd0dd2bdda2c7a.zip
Change checkstyle's output sub_type to style (#3780)
Diffstat (limited to 'ale_linters/java/checkstyle.vim')
-rw-r--r--ale_linters/java/checkstyle.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/java/checkstyle.vim b/ale_linters/java/checkstyle.vim
index f00734e0..1ccbc505 100644
--- a/ale_linters/java/checkstyle.vim
+++ b/ale_linters/java/checkstyle.vim
@@ -14,6 +14,7 @@ function! ale_linters#java#checkstyle#Handle(buffer, lines) abort
for l:match in ale#util#GetMatches(a:lines, l:pattern)
call add(l:output, {
\ 'type': l:match[1] is? 'WARN' ? 'W' : 'E',
+ \ 'sub_type': 'style',
\ 'lnum': l:match[2] + 0,
\ 'col': l:match[3] + 0,
\ 'text': l:match[4],
@@ -31,6 +32,7 @@ function! ale_linters#java#checkstyle#Handle(buffer, lines) abort
for l:match in ale#util#GetMatches(a:lines, l:pattern)
call add(l:output, {
\ 'type': l:match[3] is? 'warning' ? 'W' : 'E',
+ \ 'sub_type': 'style',
\ 'lnum': l:match[2] + 0,
\ 'text': l:match[4],
\})