mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-30 08:04:31 +08:00
Added filename key for go build linter
- Re: f224ce8a37
- The issues that prompted the above commit which reverted changes made to `go build` and
`gometalinter` seemed to suggest that the main issue was with gometalinter and that
changes should be put into different commits so they are independent of each other
- This commit reinstates the changes to the `go build` linter which seem to be uncontested
and it also seems absolutely necessary to show errors from all files in the package which
may have caused a build failure.
This commit is contained in:
@@ -28,7 +28,7 @@ Execute (The gobuild handler should handle names with spaces):
|
||||
\ ]), 'v:val[1:4]')
|
||||
|
||||
Execute (The gobuild handler should handle relative paths correctly):
|
||||
silent file! /foo/bar/baz.go
|
||||
call ale#test#SetFilename('app/test.go')
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
@@ -37,8 +37,9 @@ Execute (The gobuild handler should handle relative paths correctly):
|
||||
\ 'col': 0,
|
||||
\ 'text': 'missing argument for Printf("%s"): format reads arg 2, have only 1 args',
|
||||
\ 'type': 'E',
|
||||
\ 'filename': ale#path#Winify(expand('%:p:h') . '/test.go'),
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#go#gobuild#Handler(bufnr(''), [
|
||||
\ 'baz.go:27: missing argument for Printf("%s"): format reads arg 2, have only 1 args',
|
||||
\ 'test.go:27: missing argument for Printf("%s"): format reads arg 2, have only 1 args',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user