From 8a89c5f74361f1c1ae4ae7300e47157db7eb8648 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 8 Mar 2024 11:51:49 +0800 Subject: [PATCH] perf(go)!: change default lint to golangci_lint --- autoload/SpaceVim/layers/lang/go.vim | 6 +++--- doc/SpaceVim.txt | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/autoload/SpaceVim/layers/lang/go.vim b/autoload/SpaceVim/layers/lang/go.vim index c65cc22c5..f1983e5c0 100644 --- a/autoload/SpaceVim/layers/lang/go.vim +++ b/autoload/SpaceVim/layers/lang/go.vim @@ -17,8 +17,8 @@ " < " @subsection layer options " 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. " > " [[layers]] @@ -89,7 +89,7 @@ if exists('s:enabled_linters') finish endif -let s:enabled_linters = ['golint'] +let s:enabled_linters = ['golangci_lint'] let s:format_on_save = 0 let s:go_file_head = [ \ '// @Title', diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index b24c473af..da0f58e0b 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -3173,7 +3173,8 @@ development. This layer is not enabled by default, to enable it: < LAYER OPTIONS 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. >