mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-20 12:57:04 +08:00
Simplify some code and format some tests better
This commit is contained in:
1 parent
689921d7e3
commit
99afe586b3
8 files changed
+195
-245
No files matched your search
@@ -32,15 +32,11 @@ function! ale_linters#go#gometalinter#Handler(buffer, lines) abort
|
||||
continue
|
||||
endif
|
||||
|
||||
" vcol is Needed to indicate that the column is a character.
|
||||
call add(l:output, {
|
||||
\ 'bufnr': a:buffer,
|
||||
\ 'lnum': l:match[1] + 0,
|
||||
\ 'vcol': 0,
|
||||
\ 'col': l:match[2] + 0,
|
||||
\ 'text': l:match[4],
|
||||
\ 'type': tolower(l:match[3]) ==# 'warning' ? 'W' : 'E',
|
||||
\ 'nr': -1,
|
||||
\})
|
||||
endfor
|
||||
|
||||
|
||||
Reference in new issue
Block a user