Skip to content

Commit

Permalink
enable linter: gocritic/rangeValCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Nov 4, 2024
1 parent 45473c4 commit f5d30b8
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ linters-settings:
- ifElseChain
- importShadow
- hugeParam
- rangeValCopy
- commentedOutCode
- commentedOutImport
- unnamedResult
Expand Down Expand Up @@ -456,3 +455,23 @@ issues:
- revive
path: "cmd/crowdsec/win_service.go"
text: "deep-exit: .*"

- linters:
- gocritic
path: "cmd/crowdsec-cli"
text: "rangeValCopy: .*"

- linters:
- gocritic
path: "pkg/(cticlient|hubtest)"
text: "rangeValCopy: .*"

- linters:
- gocritic
path: "(.+)_test.go"
text: "rangeValCopy: .*"

# - linters:
# - gocritic
# path: "pkg/(appsec|acquisition|dumps|alertcontext|leakybucket|exprhelpers)"
# text: "rangeValCopy: .*"

0 comments on commit f5d30b8

Please sign in to comment.