Merge pull request #2340 from svanharmelen/svh/f-gotype
make `gotype` return all errors
This commit is contained in:
commit
5be6a2b4e0
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ function! ale_linters#go#gotype#GetCommand(buffer) abort
|
|||
return ''
|
||||
endif
|
||||
|
||||
return ale#path#BufferCdString(a:buffer) . ' gotype .'
|
||||
return ale#path#BufferCdString(a:buffer) . ' gotype -e .'
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('go', {
|
||||
|
|
|
@ -7,7 +7,7 @@ After:
|
|||
|
||||
Execute(The default gotype command should be correct):
|
||||
AssertLinter 'gotype',
|
||||
\ ale#path#CdString(expand('%:p:h')) . ' gotype .'
|
||||
\ ale#path#CdString(expand('%:p:h')) . ' gotype -e .'
|
||||
|
||||
Execute(The gotype callback should ignore test files):
|
||||
call ale#test#SetFilename('bla_test.go')
|
||||
|
|
Reference in a new issue