diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-03-30 23:28:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 23:28:19 +0100 |
commit | 6c97cd335b33d2160288b992602a0deda2ae5652 (patch) | |
tree | dd5d2350f79e9456618dae6746ad0a8c5ae23381 /ale_linters | |
parent | 36f9631512fe164ae115c4a216d3cddbf81e6daa (diff) | |
parent | 43f24f4c012687a7771e334d4e25ebe407a512bf (diff) | |
download | ale-6c97cd335b33d2160288b992602a0deda2ae5652.zip |
Merge pull request #429 from breed808/go
Add support for gosimple and staticcheck
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/go/gosimple.vim | 9 | ||||
-rw-r--r-- | ale_linters/go/staticcheck.vim | 9 |
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', +\}) |