You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: autoload/go/lint_test.vim
+4-3
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,18 @@ endfunc
12
12
13
13
func!s:gometa(metalinter) abort
14
14
let RestoreGOPATH =go#util#SetEnv('GOPATH', fnamemodify(getcwd(), ':p') . 'test-fixtures/lint')
15
-
silentexe'e! ' . $GOPATH . '/src/lint/lint.go'
15
+
callgo#util#Chdir('test-fixtures/lint/src/foo')
16
+
silentexe'e! ' . $GOPATH . '/src/foo/foo.go'
16
17
17
18
try
18
19
letg:go_metalinter_command=a:metalinter
19
20
letl:vim=s:vimdir()
20
21
let expected = [
21
-
\ {'lnum': 1, 'bufnr': bufnr('%')+9, 'col': 1, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': 'at least one file in a package should have a package comment (ST1000)'},
22
+
\ {'lnum': 1, 'bufnr': bufnr('%'), 'col': 1, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': 'at least one file in a package should have a package comment (ST1000)'},
22
23
\ ]
23
24
ifa:metalinter=='golangci-lint'
24
25
let expected = [
25
-
\ {'lnum': 5, 'bufnr': bufnr('%')+9, 'col': 1, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': 'exported function `MissingFooDoc` should have comment or be unexported (golint)'}
26
+
\ {'lnum': 5, 'bufnr': bufnr('%'), 'col': 1, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': 'exported function `MissingFooDoc` should have comment or be unexported (golint)'}
0 commit comments