summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-04-02 14:27:01 +0100
committerGitHub <noreply@github.com>2019-04-02 14:27:01 +0100
commit5be6a2b4e0bc7b1d7b72238ca4df2dc951f3db6d (patch)
treec9a1b8093125026d725befa345fa58581e50551c
parent669aeb2c9d85d8ebd52b6a4c0dba712fb8a25cd3 (diff)
parentb0fac4706057f5db396695e0ea62674b43ecb749 (diff)
downloadale-5be6a2b4e0bc7b1d7b72238ca4df2dc951f3db6d.zip
Merge pull request #2340 from svanharmelen/svh/f-gotype
make `gotype` return all errors
-rw-r--r--ale_linters/go/gotype.vim2
-rw-r--r--test/command_callback/test_gotype_command_callback.vader2
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/go/gotype.vim b/ale_linters/go/gotype.vim
index 159df892..d5d563aa 100644
--- a/ale_linters/go/gotype.vim
+++ b/ale_linters/go/gotype.vim
@@ -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', {
diff --git a/test/command_callback/test_gotype_command_callback.vader b/test/command_callback/test_gotype_command_callback.vader
index 1898a0cb..113f4823 100644
--- a/test/command_callback/test_gotype_command_callback.vader
+++ b/test/command_callback/test_gotype_command_callback.vader
@@ -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')