refactor: migrate lint config to v2, remove daemon auto-upgrade, add trust badges
This commit is contained in:
parent
a13104bdb7
commit
efa4562acd
18 changed files with 188 additions and 268 deletions
|
|
@ -1,10 +1,11 @@
|
|||
version: "2"
|
||||
|
||||
run:
|
||||
timeout: 5m
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- errcheck
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
|
|
@ -16,29 +17,31 @@ linters:
|
|||
- errname
|
||||
- errorlint
|
||||
- exhaustive
|
||||
- gofmt
|
||||
- goimports
|
||||
- misspell
|
||||
- nilerr
|
||||
- prealloc
|
||||
- unconvert
|
||||
- unparam
|
||||
- wastedassign
|
||||
settings:
|
||||
gosec:
|
||||
excludes:
|
||||
- G104 # Allow unhandled errors in fire-and-forget (notifications)
|
||||
errcheck:
|
||||
exclude-functions:
|
||||
- (*os/exec.Cmd).Start # Fire-and-forget for notifications
|
||||
exhaustive:
|
||||
default-signifies-exhaustive: true
|
||||
misspell:
|
||||
locale: US
|
||||
exclusions:
|
||||
paths:
|
||||
- dist
|
||||
|
||||
linters-settings:
|
||||
gosec:
|
||||
excludes:
|
||||
- G104 # Allow unhandled errors in fire-and-forget (notifications)
|
||||
errcheck:
|
||||
exclude-functions:
|
||||
- (*os/exec.Cmd).Start # Fire-and-forget for notifications
|
||||
exhaustive:
|
||||
default-signifies-exhaustive: true
|
||||
misspell:
|
||||
locale: US
|
||||
|
||||
issues:
|
||||
exclude-dirs:
|
||||
- dist
|
||||
max-issues-per-linter: 50
|
||||
max-same-issues: 5
|
||||
formatters:
|
||||
enable:
|
||||
- gofmt
|
||||
- goimports
|
||||
exclusions:
|
||||
paths:
|
||||
- dist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue