mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
sync linting options with stereoscope
This commit is contained in:
parent
44d081040f
commit
4cbed05358
@ -3,6 +3,7 @@ linters:
|
|||||||
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
|
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
|
- asciicheck
|
||||||
- bodyclose
|
- bodyclose
|
||||||
- deadcode
|
- deadcode
|
||||||
- depguard
|
- depguard
|
||||||
@ -17,17 +18,16 @@ linters:
|
|||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
- golint
|
||||||
- gomnd
|
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
- gosec
|
- gosec
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- interfacer
|
- maligned
|
||||||
- lll
|
|
||||||
- misspell
|
- misspell
|
||||||
- nakedret
|
- nakedret
|
||||||
- nolintlint
|
- nolintlint
|
||||||
|
- prealloc
|
||||||
- rowserrcheck
|
- rowserrcheck
|
||||||
- scopelint
|
- scopelint
|
||||||
- staticcheck
|
- staticcheck
|
||||||
@ -39,17 +39,16 @@ linters:
|
|||||||
- unused
|
- unused
|
||||||
- varcheck
|
- varcheck
|
||||||
- whitespace
|
- whitespace
|
||||||
- prealloc
|
|
||||||
- asciicheck
|
|
||||||
|
|
||||||
# do not enable...
|
# do not enable...
|
||||||
# - gochecknoinits
|
|
||||||
# - gochecknoglobals
|
# - gochecknoglobals
|
||||||
|
# - gochecknoinits # this is too aggressive
|
||||||
# - godot
|
# - godot
|
||||||
# - godox
|
# - godox
|
||||||
# - goerr113
|
# - goerr113
|
||||||
# - maligned
|
# - gomnd # this is too aggressive
|
||||||
|
# - interfacer # this is a good idea, but is no longer supported and is prone to false positives
|
||||||
|
# - lll # without a way to specify per-line exception cases, this is not usable
|
||||||
# - nestif
|
# - nestif
|
||||||
# - testpackage
|
# - testpackage
|
||||||
# - wsl
|
# - wsl
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user