Skip to content

Commit

Permalink
Add gocritic linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasslash authored and uturunku1 committed Feb 24, 2022
1 parent 5cadd4e commit 63e6b12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ linters:
- stylecheck #https://github.com/dominikh/go-tools/tree/master/stylecheck
- revive #golint is deprecated and golangci-lint recommends to use revive instead https://github.com/mgechev/revive
#other deprecated lint libraries: maligned, scopelint, interfacer
- gocritic
issues:
exclude-rules:
- path: _test\.go
Expand All @@ -30,6 +31,11 @@ linters-settings:
min-len: 20
min-occurrences: 5
ignore-calls: false
gocritic:
enabled-tags:
- diagnostic
- opinionated
- performance
revive:
# see https://github.com/mgechev/revive#available-rules for details.
ignore-generated-header: false #recommended in their configuration
Expand Down

0 comments on commit 63e6b12

Please sign in to comment.