mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-02 10:27:30 +08:00
Fixes govet linter for go 1.13+, with tests
This commit is contained in:
1 parent
7265ceb6d0
commit
35c7c297b6
2 files changed
+20
-1
No files matched your search
@@ -6,9 +6,12 @@
|
||||
"
|
||||
" Author: Ben Paxton <ben@gn32.uk>
|
||||
" Description: moved to generic Golang file from govet
|
||||
"
|
||||
" Author: mostfunkyduck <mostfunkyduck@protonmail.com>
|
||||
" Description: updated to work with go 1.14
|
||||
|
||||
function! ale#handlers#go#Handler(buffer, lines) abort
|
||||
let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+):?(\d+)?:? ?(.+)$'
|
||||
let l:pattern = '\v^%(vet: )?([a-zA-Z]?:?[^:]+):(\d+):?(\d+)?:? ?(.+)$'
|
||||
let l:output = []
|
||||
let l:dir = expand('#' . a:buffer . ':p:h')
|
||||
|
||||
|
||||
Reference in new issue
Block a user