Skip to content

Commit

Permalink
golangci-lint: blacklist linters rather than enabling them
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 16, 2024
1 parent 84b897c commit 1eeee48
Showing 1 changed file with 21 additions and 45 deletions.
66 changes: 21 additions & 45 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
# taken from https://github.com/nix-community/go-nix/blob/main/.golangci.yml
linters:
enable:
- errname
- errorlint
- exhaustive
- gci
- gochecknoglobals
- gochecknoinits
- goconst
- godot
- gofumpt
- goheader
- goimports
- gosec
- importas
- intrange
- ireturn
- lll
- makezero
- mirror
- misspell
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- nolintlint
- perfsprint
- prealloc
- predeclared
- revive
- rowserrcheck
- stylecheck
- tagalign
- tagliatelle
- tenv
- testifylint
- testpackage
- thelper
- unconvert
- unparam
- wastedassign
- whitespace
- wrapcheck
- wsl
enable-all: true
disable:
- depguard
- execinquery
- exhaustruct
- exportloopref
- funlen
- godox
- gomnd
- mnd
- varnamelen
- forbidigo
- gocognit
- gocyclo
- cyclop
- err113
- maintidx
# would be nice to have but too many tests depend on environment variables, which is not allowed for t.Parallel()
- paralleltest
# would be also nice to enable because I also found some cases confusing
- nonamedreturns

0 comments on commit 1eeee48

Please sign in to comment.