summaryrefslogtreecommitdiff
path: root/ale_linters/go
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/go')
-rw-r--r--ale_linters/go/gofmt.vim2
-rw-r--r--ale_linters/go/golint.vim2
-rw-r--r--ale_linters/go/govet.vim2
3 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/go/gofmt.vim b/ale_linters/go/gofmt.vim
index 50d25086..b38e4e98 100644
--- a/ale_linters/go/gofmt.vim
+++ b/ale_linters/go/gofmt.vim
@@ -5,6 +5,6 @@ call ale#linter#Define('go', {
\ 'name': 'gofmt',
\ 'output_stream': 'stderr',
\ 'executable': 'gofmt',
-\ 'command': g:ale#util#stdin_wrapper . ' .go gofmt -e',
+\ 'command': 'gofmt -e %t',
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
\})
diff --git a/ale_linters/go/golint.vim b/ale_linters/go/golint.vim
index 5329e334..8fe5b69b 100644
--- a/ale_linters/go/golint.vim
+++ b/ale_linters/go/golint.vim
@@ -4,6 +4,6 @@
call ale#linter#Define('go', {
\ 'name': 'golint',
\ 'executable': 'golint',
-\ 'command': g:ale#util#stdin_wrapper . ' .go golint',
+\ 'command': 'golint %t',
\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
\})
diff --git a/ale_linters/go/govet.vim b/ale_linters/go/govet.vim
index 6153caa8..e605a299 100644
--- a/ale_linters/go/govet.vim
+++ b/ale_linters/go/govet.vim
@@ -5,6 +5,6 @@ call ale#linter#Define('go', {
\ 'name': 'go vet',
\ 'output_stream': 'stderr',
\ 'executable': 'go',
-\ 'command': g:ale#util#stdin_wrapper . ' .go go vet',
+\ 'command': 'go vet %t',
\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
\})