summaryrefslogtreecommitdiff
path: root/ale_linters/go
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-02-11 19:40:57 +0000
committerw0rp <devw0rp@gmail.com>2017-02-11 19:40:57 +0000
commitecbb27680563a50d4dd981f968d659ef20bfbe30 (patch)
tree3e60f1ad7840dce1351819cd191a4c7ca0a7330e /ale_linters/go
parentc33602534e205aa677521ce49a8054588d88bdc2 (diff)
downloadale-ecbb27680563a50d4dd981f968d659ef20bfbe30.zip
Replace every stdin-wrapper script with the new %t formatting support
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',
\})