Skip to content

Commit

Permalink
only include golangci-lint messages for active buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
micahcoffman committed Mar 20, 2019
1 parent 4358eb0 commit f574b1f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions autoload/go/lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ let s:cpo_save = &cpo
set cpo&vim

function! go#lint#Gometa(bang, autosave, ...) abort
let l:metalinter = go#config#Metalinter()

if a:0 == 0
let goargs = [expand('%:p:h')]
if l:metalinter == "gometalinter"
let goargs = [expand('%:p:h')]
else
let goargs = [expand('%:p')]
endif
else
let goargs = a:000
endif

let l:metalinter = go#config#Metalinter()

if empty(go#config#MetalinterCommand())
let cmd = s:metalintercmd(l:metalinter)
if empty(cmd)
Expand Down

0 comments on commit f574b1f

Please sign in to comment.