1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-09-30 13:51:17 +02:00
nfpm/.golangci.yml
Dj Gilcrease c4ae30d749
feat: try to clean up and simplify the file adding interface (#255)
* feat: cleanup and simplify the file adding interface

* docs: update the configuration docs to focus on the new contents format for specifying files

* docs: correct spelling

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-12-15 13:47:00 -03: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
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