Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Checker golangci_lint: cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
lcd047 committed Jun 15, 2018
1 parent 6c26229 commit 9e1b2a8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
43 changes: 24 additions & 19 deletions doc/syntastic-checkers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2512,11 +2512,11 @@ The following checkers are available for Go (filetype "go"):

1. go.......................|syntastic-go-go|
2. gofmt....................|syntastic-go-gofmt|
3. Golint...................|syntastic-go-golint|
4. Go Meta Linter...........|syntastic-go-gometalinter|
5. gotype...................|syntastic-go-gotype|
6. vet......................|syntastic-go-govet|
7. golangci-lint............|syntastic-go-golangci-lint|
3. GolangCI-Lint............|syntastic-go-golangci_lint|
4. Golint...................|syntastic-go-golint|
5. Go Meta Linter...........|syntastic-go-gometalinter|
6. gotype...................|syntastic-go-gotype|
7. vet......................|syntastic-go-govet|

------------------------------------------------------------------------------
1. go *syntastic-go-go*
Expand Down Expand Up @@ -2565,7 +2565,22 @@ autocommand towards that end: >
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
Maintainer: Hiroshi Ioka <hirochachacha@gmail.com>
Expand All @@ -2580,7 +2595,7 @@ This checker is initialised using the "makeprgBuild()" function and thus it
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
Maintainer: Joshua Rubin <joshua@rubixconsulting.com>
Expand All @@ -2597,7 +2612,7 @@ This checker is initialised using the "makeprgBuild()" function and thus it
accepts the standard options described at |syntastic-config-makeprg|.

------------------------------------------------------------------------------
5. gotype *syntastic-go-gotype*
6. gotype *syntastic-go-gotype*

Name: gotype
Maintainer: luz <ne.tetewi@gmail.com>
Expand All @@ -2607,7 +2622,7 @@ See the tool's documentation for details:
https://godoc.org/golang.org/x/tools/cmd/gotype

------------------------------------------------------------------------------
6. vet *syntastic-go-govet*
7. vet *syntastic-go-govet*

Name: govet
Maintainer: Kamil Kisiel <kamil@kamilkisiel.net>
Expand All @@ -2621,16 +2636,6 @@ Note~
This checker doesn't call the "makeprgBuild()" function, and thus it ignores
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*

Expand Down
2 changes: 1 addition & 1 deletion plugin/syntastic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif

let g:_SYNTASTIC_VERSION = '3.9.0-6'
let g:_SYNTASTIC_VERSION = '3.9.0-9'
lockvar g:_SYNTASTIC_VERSION

" Sanity checks {{{1
Expand Down
5 changes: 1 addition & 4 deletions syntax_checkers/go/golangci_lint.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ let s:save_cpo = &cpo
set cpo&vim

function! SyntaxCheckers_go_golangci_lint_GetLocList() dict
let makeprg = self.makeprgBuild({
\ 'args_before': 'run',
\ })
let makeprg = self.makeprgBuild({ 'args_before': 'run' })

let errorformat =
\ '%f:%l:%c: %m,' .
Expand All @@ -32,7 +30,6 @@ function! SyntaxCheckers_go_golangci_lint_GetLocList() dict
\ 'errorformat': errorformat,
\ 'defaults': {'type': 'e'},
\ 'subtype': 'Style' })

endfunction

call g:SyntasticRegistry.CreateAndRegisterChecker({
Expand Down

0 comments on commit 9e1b2a8

Please sign in to comment.