Add support for gosimple and staticcheck
This commit is contained in:
9
ale_linters/go/gosimple.vim
Normal file
9
ale_linters/go/gosimple.vim
Normal 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',
|
||||
\})
|
||||
9
ale_linters/go/staticcheck.vim
Normal file
9
ale_linters/go/staticcheck.vim
Normal 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',
|
||||
\})
|
||||
Reference in New Issue
Block a user