From 9a48f73ba79bd6b7e6584e430a9a38a5ab744869 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Tue, 21 Nov 2023 13:51:58 -0500 Subject: [PATCH] golangci-lint: disable even the default linters This makes it possible to have one enabled list of linters. Linters that are in the enabled list but commented as the ones that are disabled and we need to enable them after fixing the issues. Signed-off-by: Raghavendra Talur --- .golangci.yaml | 55 +++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 34ce84988..2fd454c99 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -80,6 +80,7 @@ linters-settings: # - name: bool-literal-in-expr linters: + disable-all: true enable: - asasalint - asciicheck @@ -153,31 +154,29 @@ linters: - wastedassign - whitespace - wsl - disable: - - exhaustivestruct - - gochecknoglobals - - gochecknoinits - - godot - - godox - - paralleltest - - goerr113 # TODO: Need to introduce error definition and bring this back - - goheader # TODO: Introduce back post fixing linter errors - - gci - - interfacer # interfacer linter is archived and deprecated (https://github.com/mvdan/interfacer) - # TODO: fix folloing linter errors. - - exhaustruct - - tagliatelle - - gomoddirectives - - goimports - - wrapcheck - - varnamelen - - staticcheck - - nosnakecase - - ireturn - - nilnil - - containedctx - - nonamedreturns - - forcetypeassert - - promlinter - - contextcheck - - errname + # - exhaustivestruct + # - gochecknoglobals + # - gochecknoinits + # - godot + # - godox + # - paralleltest + # - goerr113 # TODO: Need to introduce error definition and bring this back + # - goheader # TODO: Introduce back post fixing linter errors + # - gci + # - interfacer # interfacer linter is archived and deprecated (https://github.com/mvdan/interfacer) + # - exhaustruct + # - tagliatelle + # - gomoddirectives + # - goimports + # - wrapcheck + # - varnamelen + # - staticcheck + # - nosnakecase + # - ireturn + # - nilnil + # - containedctx + # - nonamedreturns + # - forcetypeassert + # - promlinter + # - contextcheck + # - errname \ No newline at end of file