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

Commit 9e1b2a8

Browse files
committed
Checker golangci_lint: cleanup.
1 parent 6c26229 commit 9e1b2a8

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

doc/syntastic-checkers.txt

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,11 +2512,11 @@ The following checkers are available for Go (filetype "go"):
25122512

25132513
1. go.......................|syntastic-go-go|
25142514
2. gofmt....................|syntastic-go-gofmt|
2515-
3. Golint...................|syntastic-go-golint|
2516-
4. Go Meta Linter...........|syntastic-go-gometalinter|
2517-
5. gotype...................|syntastic-go-gotype|
2518-
6. vet......................|syntastic-go-govet|
2519-
7. golangci-lint............|syntastic-go-golangci-lint|
2515+
3. GolangCI-Lint............|syntastic-go-golangci_lint|
2516+
4. Golint...................|syntastic-go-golint|
2517+
5. Go Meta Linter...........|syntastic-go-gometalinter|
2518+
6. gotype...................|syntastic-go-gotype|
2519+
7. vet......................|syntastic-go-govet|
25202520

25212521
------------------------------------------------------------------------------
25222522
1. go *syntastic-go-go*
@@ -2565,7 +2565,22 @@ autocommand towards that end: >
25652565
autocmd FileType go autocmd BufWritePre <buffer> Fmt
25662566
<
25672567
------------------------------------------------------------------------------
2568-
3. Golint *syntastic-go-golint*
2568+
3. GolangCI-Lint *syntastic-go-golangci_lint*
2569+
2570+
Name: golangci_lint
2571+
Maintainer: Elvis Macak <elvis@lnmpy.com>
2572+
2573+
GolangCI-Lint is a linters aggregator. See the project's page for details:
2574+
2575+
https://github.com/golangci/golangci-lint
2576+
2577+
Checker options~
2578+
2579+
This checker is initialised using the "makeprgBuild()" function and thus it
2580+
accepts the standard options described at |syntastic-config-makeprg|.
2581+
2582+
------------------------------------------------------------------------------
2583+
4. Golint *syntastic-go-golint*
25692584

25702585
Name: golint
25712586
Maintainer: Hiroshi Ioka <hirochachacha@gmail.com>
@@ -2580,7 +2595,7 @@ This checker is initialised using the "makeprgBuild()" function and thus it
25802595
accepts the standard options described at |syntastic-config-makeprg|.
25812596

25822597
------------------------------------------------------------------------------
2583-
4. Go Meta Linter *syntastic-go-gometalinter*
2598+
5. Go Meta Linter *syntastic-go-gometalinter*
25842599

25852600
Name: gometalinter
25862601
Maintainer: Joshua Rubin <joshua@rubixconsulting.com>
@@ -2597,7 +2612,7 @@ This checker is initialised using the "makeprgBuild()" function and thus it
25972612
accepts the standard options described at |syntastic-config-makeprg|.
25982613

25992614
------------------------------------------------------------------------------
2600-
5. gotype *syntastic-go-gotype*
2615+
6. gotype *syntastic-go-gotype*
26012616

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

26092624
------------------------------------------------------------------------------
2610-
6. vet *syntastic-go-govet*
2625+
7. vet *syntastic-go-govet*
26112626

26122627
Name: govet
26132628
Maintainer: Kamil Kisiel <kamil@kamilkisiel.net>
@@ -2621,16 +2636,6 @@ Note~
26212636
This checker doesn't call the "makeprgBuild()" function, and thus it ignores
26222637
the usual 'g:syntastic_go_govet_<option>' variables.
26232638

2624-
------------------------------------------------------------------------------
2625-
7. golangci-lint *syntastic-go-golangci-lint*
2626-
2627-
Name: golangci-lint
2628-
Maintainer: Elvis Macak <elvis@lnmpy.com>
2629-
2630-
See the tool's documentation for details:
2631-
2632-
https://github.com/golangci/golangci-lint
2633-
26342639
==============================================================================
26352640
SYNTAX CHECKERS FOR HAML *syntastic-checkers-haml*
26362641

plugin/syntastic.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if has('reltime')
1919
lockvar! g:_SYNTASTIC_START
2020
endif
2121

22-
let g:_SYNTASTIC_VERSION = '3.9.0-6'
22+
let g:_SYNTASTIC_VERSION = '3.9.0-9'
2323
lockvar g:_SYNTASTIC_VERSION
2424

2525
" Sanity checks {{{1

syntax_checkers/go/golangci_lint.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ let s:save_cpo = &cpo
1919
set cpo&vim
2020

2121
function! SyntaxCheckers_go_golangci_lint_GetLocList() dict
22-
let makeprg = self.makeprgBuild({
23-
\ 'args_before': 'run',
24-
\ })
22+
let makeprg = self.makeprgBuild({ 'args_before': 'run' })
2523

2624
let errorformat =
2725
\ '%f:%l:%c: %m,' .
@@ -32,7 +30,6 @@ function! SyntaxCheckers_go_golangci_lint_GetLocList() dict
3230
\ 'errorformat': errorformat,
3331
\ 'defaults': {'type': 'e'},
3432
\ 'subtype': 'Style' })
35-
3633
endfunction
3734

3835
call g:SyntasticRegistry.CreateAndRegisterChecker({

0 commit comments

Comments
 (0)