Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix golangci-lint configuration #360

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading