Skip to content

Commit

Permalink
ci: Add new linters.
Browse files Browse the repository at this point in the history
- fatcontext - Detects nested contexts in loops.
- mirror - Reports wrong mirror patterns of bytes/strings usage.
- nilnil - Checks that there is no simultaneous return of nil error and
  an invalid value.
- usestdlibvars - detect the possibility to use variables/constants from
  the Go standard library.
  • Loading branch information
jholdstock committed Jul 8, 2024
1 parent e66eb68 commit 86545b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ linters:
- errorlint
- exhaustive
- exportloopref
- fatcontext
- goconst
- godot
- gofmt
Expand All @@ -22,8 +23,10 @@ linters:
- govet
- ineffassign
- makezero
- mirror
- misspell
- nilerr
- nilnil
- nosprintfhostport
- prealloc
- predeclared
Expand All @@ -33,5 +36,6 @@ linters:
- tparallel
- typecheck
- unconvert
- usestdlibvars
- unparam
- unused

0 comments on commit 86545b9

Please sign in to comment.