1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-10-01 06:39:37 +02:00
nfpm/.golangci.yml
Carlos Alexandro Becker 62357a65e2
feat: version as v2 (#268)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-23 13:25:57 +00:00

50 lines
1.1 KiB
YAML

linters:
enable-all: true
disable:
- paralleltest
- godox
- wsl
- gomnd
- testpackage
- nolintlint
- gofumpt
- nlreturn
- gci
- exhaustivestruct
- wrapcheck
- godot
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/v2
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:
- composites
exclude-rules:
- text: "G104" # gosec G104 is caught by errcheck
linters:
- gosec