mirror of
https://github.com/guggero/chantools.git
synced 2026-08-13 12:33:34 +02:00
lint: update linter config
This commit is contained in:
parent
20e757ef3f
commit
7d27deaaa1
1 changed files with 2 additions and 3 deletions
|
|
@ -1,11 +1,12 @@
|
|||
run:
|
||||
# timeout for analysis
|
||||
timeout: 4m
|
||||
go: "1.23"
|
||||
|
||||
linters-settings:
|
||||
govet:
|
||||
# Don't report about shadowed variables
|
||||
check-shadowing: false
|
||||
shadow: false
|
||||
gofmt:
|
||||
# simplify code: gofmt with `-s` option, true by default
|
||||
simplify: true
|
||||
|
|
@ -17,7 +18,6 @@ linters-settings:
|
|||
rules:
|
||||
json: snake
|
||||
staticcheck:
|
||||
go: "1.18"
|
||||
checks: ["-SA1019"]
|
||||
gomoddirectives:
|
||||
replace-allow-list:
|
||||
|
|
@ -34,7 +34,6 @@ linters:
|
|||
- varnamelen
|
||||
- wrapcheck
|
||||
- testpackage
|
||||
- gomnd
|
||||
- err113
|
||||
- exhaustruct
|
||||
- forbidigo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue