Skip to content

Commit

Permalink
fix: fix golangci-lint regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Benjamin authored and Peter Benjamin committed Jul 14, 2023
1 parent 29e5ffe commit ec00821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ale_linters/go/golangci_lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function! ale_linters#go#golangci_lint#GetCommand(buffer) abort
endfunction

function! ale_linters#go#golangci_lint#GetMatches(lines) abort
let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+):?(\d+)?:?:?:?\s\*?(.+)\s+\((.+)\)$'
let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+):?(\d+)?:? (.+)$'

return ale#util#GetMatches(a:lines, l:pattern)
endfunction
Expand Down

0 comments on commit ec00821

Please sign in to comment.