mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:40:05 +08:00
perf(go)!: change default lint to golangci_lint
This commit is contained in:
parent
85b35020e0
commit
8a89c5f743
@ -17,8 +17,8 @@
|
|||||||
" <
|
" <
|
||||||
" @subsection layer options
|
" @subsection layer options
|
||||||
" 1. `enabled_linters`: set a list of enabled lint for golang. by default this
|
" 1. `enabled_linters`: set a list of enabled lint for golang. by default this
|
||||||
" option is `['golint']`. The available linters includes: `go`,
|
" option is `['golangci_lint']`. The available linters includes: `go`,
|
||||||
" `gometalinter`
|
" `gometalinter`, etc.
|
||||||
" 2. go_file_head: the default file head for golang source code.
|
" 2. go_file_head: the default file head for golang source code.
|
||||||
" >
|
" >
|
||||||
" [[layers]]
|
" [[layers]]
|
||||||
@ -89,7 +89,7 @@ if exists('s:enabled_linters')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:enabled_linters = ['golint']
|
let s:enabled_linters = ['golangci_lint']
|
||||||
let s:format_on_save = 0
|
let s:format_on_save = 0
|
||||||
let s:go_file_head = [
|
let s:go_file_head = [
|
||||||
\ '// @Title',
|
\ '// @Title',
|
||||||
|
@ -3173,7 +3173,8 @@ development. This layer is not enabled by default, to enable it:
|
|||||||
<
|
<
|
||||||
LAYER OPTIONS
|
LAYER OPTIONS
|
||||||
1. `enabled_linters`: set a list of enabled lint for golang. by default this
|
1. `enabled_linters`: set a list of enabled lint for golang. by default this
|
||||||
option is `['golint']`. The available linters includes: `go`, `gometalinter`
|
option is `['golangci_lint']`. The available linters includes: `go`,
|
||||||
|
`gometalinter`, etc.
|
||||||
2. go_file_head: the default file head for golang source code.
|
2. go_file_head: the default file head for golang source code.
|
||||||
|
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user