mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-07 18:31:04 +08:00
Merge pull request #2340 from svanharmelen/svh/f-gotype
make `gotype` return all errors
This commit is contained in:
@@ -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', {
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user