Skip to content

Commit

Permalink
Minor tidy of golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Dec 10, 2024
1 parent 6027a08 commit 782b78c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ linters:
linters-settings:
gofmt:
simplify: true

goconst:
min-len: 3
min-occurrences: 3

gosec:
excludes:
- G204 # Subprocess launched with a potential tainted input or cmd arguments
Expand All @@ -56,24 +58,27 @@ linters-settings:
checks: [ "all", "-ST1022", "-ST1003" ]
errorlint:
asserts: false

gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style

forbidigo:
forbid:
- p: '^regexp\.(Match|MatchString)$'
msg: it will re-compile the regexp for each execution; compile the regexp with regexp.Compile and store it as a singleton
msg: "Use compiled regex via regexp.Compile and store as a singleton"

issues:
whole-files: true
max-issues-per-linter: 0
max-same-issues: 0
new: false
fix: false

exclude-rules:
- path: _test\.go
linters:
Expand Down

0 comments on commit 782b78c

Please sign in to comment.