Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: run golint in null module packages successfully #2318

Merged
merged 1 commit into from
May 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions autoload/go/lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ function! go#lint#Gometa(bang, autosave, ...) abort
endif
endfunction

" Golint calls 'golint' on the current directory. Any warnings are populated in
" the location list
" Golint calls 'golint'.
function! go#lint#Golint(bang, ...) abort
if a:0 == 0
let [l:out, l:err] = go#util#Exec([go#config#GolintBin(), go#package#ImportPath()])
let [l:out, l:err] = go#util#ExecInDir([go#config#GolintBin(), '.'])
else
let [l:out, l:err] = go#util#Exec([go#config#GolintBin()] + a:000)
endif
Expand Down