summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorBen Reedy <breed808@breed808.com>2017-03-30 11:42:16 +1000
committerBen Reedy <breed808@breed808.com>2017-03-30 11:49:52 +1000
commit43f24f4c012687a7771e334d4e25ebe407a512bf (patch)
treea1af23ae169c5e63a51d03d0e738db8f4c37754e /ale_linters
parent2a88b60ff1ef5a4e9e73dc0d3be9f8ac51ec1309 (diff)
downloadale-43f24f4c012687a7771e334d4e25ebe407a512bf.zip
Add support for gosimple and staticcheck
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/go/gosimple.vim9
-rw-r--r--ale_linters/go/staticcheck.vim9
2 files changed, 18 insertions, 0 deletions
diff --git a/ale_linters/go/gosimple.vim b/ale_linters/go/gosimple.vim
new file mode 100644
index 00000000..09ea40b8
--- /dev/null
+++ b/ale_linters/go/gosimple.vim
@@ -0,0 +1,9 @@
+" Author: Ben Reedy <https://github.com/breed808>
+" Description: gosimple for Go files
+
+call ale#linter#Define('go', {
+\ 'name': 'gosimple',
+\ 'executable': 'gosimple',
+\ 'command': 'gosimple %t',
+\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
+\})
diff --git a/ale_linters/go/staticcheck.vim b/ale_linters/go/staticcheck.vim
new file mode 100644
index 00000000..711e2ce2
--- /dev/null
+++ b/ale_linters/go/staticcheck.vim
@@ -0,0 +1,9 @@
+" Author: Ben Reedy <https://github.com/breed808>
+" Description: staticcheck for Go files
+
+call ale#linter#Define('go', {
+\ 'name': 'staticcheck',
+\ 'executable': 'staticcheck',
+\ 'command': 'staticcheck %t',
+\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
+\})