summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 17:38:15 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 20:03:11 -0700
commit8b49b787e50e58d7b48758bc356939af2b89ad7e (patch)
tree8f26808bbbf8a43662bf9b4807fbe6b1db8d9225
parent167460a1a2edf35e9a7ce9dbce00ac5ae110174b (diff)
.golangci.yml: Turn on all passing non-deprecated linters
-rw-r--r--.golangci.yml67
1 files changed, 63 insertions, 4 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 34dafc1..526eaea 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -3,11 +3,70 @@
# SPDX-License-Identifier: GPL-2.0-or-later
linters:
+ enable-all: true
disable:
- - structcheck # doesn't support Go 1.18 yet
- enable:
- - forbidigo
- - gofmt
+ # Deprecated
+ - deadcode # deprecated, replaced by 'unused'
+ - exhaustivestruct # deprecated, replaced by 'exhauststruct'
+ - golint # deprecated, replaced by 'revive'
+ - ifshort # deprecated
+ - interfacer # deprecated
+ - maligned # deprecated, replaced by 'govet fieldalignement'
+ - nosnakecase # deprecated, replaced by 'revive var-naming'
+ - scopelint # deprecated, replaced by 'exportloopref'
+ - structcheck # deprecated, replaced by 'unused'
+ - varcheck # deprecated, replaced by 'unused'
+
+ # Don't support Go 1.18 generics yet
+ - rowserrcheck
+ - sqlclosecheck
+ - wastedassign
+
+ # These are disabled not because I think they're bad, but because
+ # they currently don't pass, and I haven't evaluated them yet.
+ - containedctx
+ - cyclop
+ - dogsled
+ - dupword
+ - errorlint
+ - exhaustive
+ - exhaustruct
+ - forcetypeassert
+ - funlen
+ - gci
+ - gochecknoglobals
+ - gochecknoinits
+ - gocognit
+ - gocritic
+ - gocyclo
+ - godot
+ - godox
+ - goerr113
+ - gofumpt
+ - gomnd
+ - gomoddirectives
+ - ireturn
+ - lll
+ - maintidx
+ - misspell
+ - nakedret
+ - nestif
+ - nilerr
+ - nlreturn
+ - nonamedreturns
+ - paralleltest
+ - predeclared
+ - revive
+ - stylecheck
+ - tagliatelle
+ - testpackage
+ - thelper
+ - unconvert
+ - unparam
+ - varnamelen
+ - whitespace
+ - wrapcheck
+ - wsl
linters-settings:
gofmt:
simplify: true