Skip to content

Commit

Permalink
Enable more linters
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <ldevulder@suse.com>
  • Loading branch information
ldevulder committed Mar 4, 2025
1 parent 4ccff86 commit a058cc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ linters:
- dupl # check duplicated code
- goconst # check strings that can turn into constants
- gofmt # check fmt
- goheader # Check license headers, only checks files in current year
- goheader # check license headers, only checks files in current year
- goimports # check imports
- gocyclo # check complexity
- gocritic # provides diagnostics that check for bugs, performance and style issues
- gosec # inspects source code for security problems.
- unparam # reports unused function parameters
- errorlint # find code that will cause problems with error wrapping scheme
linters-settings:
gocyclo:
min-complexity: 20 # default is 30 which is too high
Expand Down

0 comments on commit a058cc0

Please sign in to comment.