Skip to content

Commit

Permalink
Fix golangci-lint configuration
Browse files Browse the repository at this point in the history
Configuration updated;
Deprecated linters were removed;

Signed-off-by: Nikolai Mishin <[email protected]>
  • Loading branch information
Nmishin committed Feb 18, 2025
1 parent 8120be4 commit 7c0b680
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
run:
deadline: 1m
skip-files:
timeout: 1m
modules-download-mode: readonly

issues:
exclude-files:
- ".*\\.pb\\.go"
skip-dirs:
exclude-dirs:
- pkg/client
modules-download-mode: readonly

linters:
enable-all: true
Expand All @@ -13,8 +15,8 @@ linters:
- testpackage # testpackage is a golang linter that makes you use a separate _test package.
- wsl
- wrapcheck
- goerr113
- gomnd
- err113
- mnd
- exhaustruct
- nestif
- gofumpt
Expand All @@ -25,12 +27,6 @@ linters:
- gci
- lll
- gocognit
- ifshort # deprecated
- maligned # deprecated
- golint # deprecated
- interfacer #deprecated
- scopelint # deprecated
- exhaustivestruct # deprecated

linters-settings:
gosimple:
Expand All @@ -42,4 +38,4 @@ linters-settings:
main:
deny:
- pkg: io/ioutil
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1"
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1"

0 comments on commit 7c0b680

Please sign in to comment.