Add support for gosimple and staticcheck

This commit is contained in:
Ben Reedy
2017-03-30 11:42:16 +10:00
parent 2a88b60ff1
commit 43f24f4c01
4 changed files with 20 additions and 2 deletions

View File

@@ -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',
\})

View File

@@ -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',
\})