Skip to content

Commit 20d7bbb

Browse files
committed
lint: make sure golangci-lint uses absolute paths
1 parent ad8a62a commit 20d7bbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/go/lint.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ function! s:golangcilintcmd(bin_path, haslinter)
426426
let l:cmd += ["--show-stats=false"]
427427
let l:cmd += ["--output.text.print-issued-lines=false"]
428428
let l:cmd += ['--build-tags', go#config#BuildTags()]
429+
let l:cmd += ['--path-mode', 'abs']
429430
" do not use the default exclude patterns, because doing so causes golint
430431
" problems about missing doc strings to be ignored and other things that
431432
" golint identifies.

0 commit comments

Comments
 (0)