Skip to content

Commit

Permalink
chore: fix lint warning (#299)
Browse files Browse the repository at this point in the history
- Update deprecated lint options
- Running `make lint` doesn't log warnings ;D
  • Loading branch information
RafilxTenfen authored Jun 1, 2022
1 parent cc41007 commit c5de88a
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ run:
skip-dirs:
- test

govet:
# Enable analyzers by name (in addition to default).
# Run `go tool vet help` to see all analyzers.
# Default: []
enable:
- fieldalignment

linters:
enable:
- bodyclose
Expand All @@ -14,17 +21,16 @@ linters:
- gocritic
- gofmt
- goimports
- golint
- revive
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- maligned
- nakedret
- prealloc
- scopelint
- exportloopref
- staticcheck
- structcheck
- stylecheck
Expand All @@ -51,10 +57,11 @@ issues:
linters-settings:
dogsled:
max-blank-identifiers: 3
golint:
min-confidence: 0
maligned:
suggest-new: true
revive:
# Sets the default failure confidence.
# This means that linting errors with less than 0.8 confidence will be ignored.
# Default: 0.8
confidence: 0
misspell:
locale: US
nolintlint:
Expand Down

0 comments on commit c5de88a

Please sign in to comment.