Checker golangci_lint: cleanup.

This commit is contained in:
LCD 47 2018-06-15 10:50:36 +03:00
parent 6c262291a3
commit 9e1b2a8620
3 changed files with 26 additions and 24 deletions

View File

@ -2512,11 +2512,11 @@ The following checkers are available for Go (filetype "go"):
1. go.......................|syntastic-go-go| 1. go.......................|syntastic-go-go|
2. gofmt....................|syntastic-go-gofmt| 2. gofmt....................|syntastic-go-gofmt|
3. Golint...................|syntastic-go-golint| 3. GolangCI-Lint............|syntastic-go-golangci_lint|
4. Go Meta Linter...........|syntastic-go-gometalinter| 4. Golint...................|syntastic-go-golint|
5. gotype...................|syntastic-go-gotype| 5. Go Meta Linter...........|syntastic-go-gometalinter|
6. vet......................|syntastic-go-govet| 6. gotype...................|syntastic-go-gotype|
7. golangci-lint............|syntastic-go-golangci-lint| 7. vet......................|syntastic-go-govet|
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
1. go *syntastic-go-go* 1. go *syntastic-go-go*
@ -2565,7 +2565,22 @@ autocommand towards that end: >
autocmd FileType go autocmd BufWritePre <buffer> Fmt autocmd FileType go autocmd BufWritePre <buffer> Fmt
< <
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
3. Golint *syntastic-go-golint* 3. GolangCI-Lint *syntastic-go-golangci_lint*
Name: golangci_lint
Maintainer: Elvis Macak <elvis@lnmpy.com>
GolangCI-Lint is a linters aggregator. See the project's page for details:
https://github.com/golangci/golangci-lint
Checker options~
This checker is initialised using the "makeprgBuild()" function and thus it
accepts the standard options described at |syntastic-config-makeprg|.
------------------------------------------------------------------------------
4. Golint *syntastic-go-golint*
Name: golint Name: golint
Maintainer: Hiroshi Ioka <hirochachacha@gmail.com> Maintainer: Hiroshi Ioka <hirochachacha@gmail.com>
@ -2580,7 +2595,7 @@ This checker is initialised using the "makeprgBuild()" function and thus it
accepts the standard options described at |syntastic-config-makeprg|. accepts the standard options described at |syntastic-config-makeprg|.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
4. Go Meta Linter *syntastic-go-gometalinter* 5. Go Meta Linter *syntastic-go-gometalinter*
Name: gometalinter Name: gometalinter
Maintainer: Joshua Rubin <joshua@rubixconsulting.com> Maintainer: Joshua Rubin <joshua@rubixconsulting.com>
@ -2597,7 +2612,7 @@ This checker is initialised using the "makeprgBuild()" function and thus it
accepts the standard options described at |syntastic-config-makeprg|. accepts the standard options described at |syntastic-config-makeprg|.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
5. gotype *syntastic-go-gotype* 6. gotype *syntastic-go-gotype*
Name: gotype Name: gotype
Maintainer: luz <ne.tetewi@gmail.com> Maintainer: luz <ne.tetewi@gmail.com>
@ -2607,7 +2622,7 @@ See the tool's documentation for details:
https://godoc.org/golang.org/x/tools/cmd/gotype https://godoc.org/golang.org/x/tools/cmd/gotype
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
6. vet *syntastic-go-govet* 7. vet *syntastic-go-govet*
Name: govet Name: govet
Maintainer: Kamil Kisiel <kamil@kamilkisiel.net> Maintainer: Kamil Kisiel <kamil@kamilkisiel.net>
@ -2621,16 +2636,6 @@ Note~
This checker doesn't call the "makeprgBuild()" function, and thus it ignores This checker doesn't call the "makeprgBuild()" function, and thus it ignores
the usual 'g:syntastic_go_govet_<option>' variables. the usual 'g:syntastic_go_govet_<option>' variables.
------------------------------------------------------------------------------
7. golangci-lint *syntastic-go-golangci-lint*
Name: golangci-lint
Maintainer: Elvis Macak <elvis@lnmpy.com>
See the tool's documentation for details:
https://github.com/golangci/golangci-lint
============================================================================== ==============================================================================
SYNTAX CHECKERS FOR HAML *syntastic-checkers-haml* SYNTAX CHECKERS FOR HAML *syntastic-checkers-haml*

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START lockvar! g:_SYNTASTIC_START
endif endif
let g:_SYNTASTIC_VERSION = '3.9.0-6' let g:_SYNTASTIC_VERSION = '3.9.0-9'
lockvar g:_SYNTASTIC_VERSION lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1 " Sanity checks {{{1

View File

@ -19,9 +19,7 @@ let s:save_cpo = &cpo
set cpo&vim set cpo&vim
function! SyntaxCheckers_go_golangci_lint_GetLocList() dict function! SyntaxCheckers_go_golangci_lint_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({ 'args_before': 'run' })
\ 'args_before': 'run',
\ })
let errorformat = let errorformat =
\ '%f:%l:%c: %m,' . \ '%f:%l:%c: %m,' .
@ -32,7 +30,6 @@ function! SyntaxCheckers_go_golangci_lint_GetLocList() dict
\ 'errorformat': errorformat, \ 'errorformat': errorformat,
\ 'defaults': {'type': 'e'}, \ 'defaults': {'type': 'e'},
\ 'subtype': 'Style' }) \ 'subtype': 'Style' })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({