Skip to content

Commit

Permalink
Merge pull request #1 from No-SilverBullet/feat/add_linter
Browse files Browse the repository at this point in the history
feat:add more linter
  • Loading branch information
No-SilverBullet authored Nov 10, 2024
2 parents ad092d5 + d84f3c0 commit aaae50c
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

linters-settings:
govet:
check-shadowing: false
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
Expand Down Expand Up @@ -56,6 +56,25 @@ linters:
- staticcheck
- ineffassign
- misspell
- typecheck
- varcheck
- unused
- structcheck
- deadcode
- gosimple
- errcheck
- asciicheck
- bodyclose
- copyloopvar
- rowserrcheck
- makezero
- durationcheck
- prealloc
- predeclared
- revive
- lll
- intrange


run:
skip-dirs:
Expand All @@ -70,6 +89,12 @@ issues:
- linters:
- staticcheck
text: "SA1019:"
- path: _test\.go
linters:
- errcheck
- gosec
- rowserrcheck
- makezero

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
Expand Down

0 comments on commit aaae50c

Please sign in to comment.