Remove duplicate key in .golangci.yml (#4247)
The .golangci.yml file contains the root level key `linters-settings` twice, resulting in following error when we run `make lint`: ``` > make lint Running lint check ERRO Can't read config: can't read viper config: While parsing config: yaml: unmarshal errors: line 26: mapping key "linters-settings" already defined at line 1 make: *** [Makefile:36: lint] Error 3 ``` Fixed by merging into a single key.
This commit is contained in:
+6
-7
@@ -1,10 +1,3 @@
|
||||
linters-settings:
|
||||
golint:
|
||||
min-confidence: 0
|
||||
|
||||
misspell:
|
||||
locale: US
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
@@ -24,6 +17,12 @@ linters:
|
||||
- gofumpt
|
||||
|
||||
linters-settings:
|
||||
golint:
|
||||
min-confidence: 0
|
||||
|
||||
misspell:
|
||||
locale: US
|
||||
|
||||
gofumpt:
|
||||
lang-version: "1.17"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user