mirror of
https://github.com/goreleaser/nfpm
synced 2024-11-19 07:34:48 +01:00
105a426161
* chore(deps): bump github.com/golangci/golangci-lint from 1.31.0 to 1.32.2 Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: errors.is Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: typo Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * fix: typo Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com> * test: fix Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
linters:
|
|
enable-all: true
|
|
disable:
|
|
- godox
|
|
- wsl
|
|
- gomnd
|
|
- testpackage
|
|
- nolintlint
|
|
- gofumpt
|
|
- nlreturn
|
|
- gci
|
|
- exhaustivestruct
|
|
- wrapcheck
|
|
linters-settings:
|
|
maligned:
|
|
# print struct with more effective memory layout or not, false by default
|
|
suggest-new: true
|
|
gocyclo:
|
|
# minimal code complexity to report, 30 by default (but we recommend 10-20)
|
|
min-complexity: 30
|
|
goimports:
|
|
# put imports beginning with prefix after 3rd-party packages;
|
|
# it's a comma-separated list of prefixes
|
|
local-prefixes: github.com/goreleaser/nfpm
|
|
govet:
|
|
check-shadowing: true
|
|
errcheck:
|
|
ignore: ^Close.*,fmt:.*,github.com/pkg/errors:^Wrap.*,os:^Setenv$
|
|
lll:
|
|
line-length: 200
|
|
golint:
|
|
min-confidence: .8
|
|
nakedret:
|
|
max-func-lines: 0
|
|
gocritic:
|
|
disabled-checks:
|
|
- whyNoLint
|
|
enabled-tags:
|
|
- style
|
|
- performance
|
|
issues:
|
|
exclude-rules:
|
|
- text: "G104" # gosec G104 is caught by errcheck
|
|
linters:
|
|
- gosec
|