Merge pull request #2340 from svanharmelen/svh/f-gotype

make `gotype` return all errors
This commit is contained in:
w0rp
2019-04-02 14:27:01 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ function! ale_linters#go#gotype#GetCommand(buffer) abort
return '' return ''
endif endif
return ale#path#BufferCdString(a:buffer) . ' gotype .' return ale#path#BufferCdString(a:buffer) . ' gotype -e .'
endfunction endfunction
call ale#linter#Define('go', { call ale#linter#Define('go', {

View File

@@ -7,7 +7,7 @@ After:
Execute(The default gotype command should be correct): Execute(The default gotype command should be correct):
AssertLinter 'gotype', 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): Execute(The gotype callback should ignore test files):
call ale#test#SetFilename('bla_test.go') call ale#test#SetFilename('bla_test.go')