Skip to content

Commit

Permalink
fix: remove deprecated linter and disable another one temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
nobe4 committed Jan 2, 2025
1 parent 5757938 commit f32cfff
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,38 @@ linters:

disable:
# TODO: remove the line and fix the issues
- bodyclose
- cyclop
- depguard
- err113
- errorlint
- forbidigo
- gochecknoglobals
- gochecknoinits
- gomnd
- inamedparam
- ireturn
- mnd
- lll
- musttag
- nestif
- paralleltest
- predeclared
- recvcheck
- revive
- whitespace
- wrapcheck
- wsl
- errorlint
- depguard
- lll
- predeclared
- inamedparam
- whitespace
- nestif
- gochecknoinits
- bodyclose
- cyclop
- musttag

- nlreturn # keeps the code concise
- godox # I like leaving TODOs in the code
- varnamelen # short variable names are okay
- testpackage # keep the tests close to the code
- exhaustruct # it's ok not to specify all the fields in a struct definition

# deprecated
- mnd
- exportloopref

issues:
exclude-rules:
- path: _test.go
Expand Down

0 comments on commit f32cfff

Please sign in to comment.