From 965be334bc73b0aae3bd2b2de8f40dc699ba449d Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Wed, 15 May 2024 05:54:08 +1000 Subject: [PATCH] ci: reverse default linter logic Signed-off-by: Ben Reedy --- .golangci.yaml | 112 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 98 insertions(+), 14 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 610632e0..aa33b2c9 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,18 +1,102 @@ linters: - disable-all: true - enable: - - errcheck - - govet - - gofmt - - ineffassign - - loggercheck - - nilnil - - nilerr - - perfsprint - - prealloc - - revive - - unconvert - - unparam + enable-all: true + disable: + - asasalint + - asciicheck + - bidichk + - bodyclose + - canonicalheader + - containedctx + - contextcheck + - copyloopvar + - cyclop + - decorder + - depguard + - dogsled + - dupl + - dupword + - durationcheck + - err113 + - errchkjson + - errname + - errorlint + - exhaustive + - exhaustruct + - exportloopref + - fatcontext + - forbidigo + - forcetypeassert + - funlen + - gci + - ginkgolinter + - gocheckcompilerdirectives + - gochecknoglobals + - gochecknoinits + - gochecksumtype + - gocognit + - goconst + - gocritic + - gocyclo + - godot + - godox + - gofumpt + - goheader + - goimports + - gomoddirectives + - gomodguard + - goprintffuncname + - gosec + - gosimple + - gosmopolitan + - grouper + - importas + - inamedparam + - interfacebloat + - intrange + - ireturn + - lll + - maintidx + - makezero + - mirror + - misspell + - mnd + - musttag + - nakedret + - nestif + - nlreturn + - noctx + - nolintlint + - nonamedreturns + - nosprintfhostport + - paralleltest + - predeclared + - promlinter + - protogetter + - reassign + - rowserrcheck + - sloglint + - spancheck + - sqlclosecheck + - staticcheck + - stylecheck + - tagalign + - tagliatelle + - tenv + - testableexamples + - testifylint + - testpackage + - thelper + - tparallel + - unused + - usestdlibvars + - varnamelen + - wastedassign + - whitespace + - wrapcheck + - wsl + - zerologlint + - execinquery + - gomnd issues: exclude: