From 97715cd21571c215cb1a561efed2170d6b1448fa Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Tue, 13 Sep 2022 22:15:58 +0530 Subject: [PATCH] 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. --- .golangci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 0e99605e..853f1177 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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"