73 lines
1.4 KiB
YAML
73 lines
1.4 KiB
YAML
run:
|
|
tests: true
|
|
skip-dirs:
|
|
- ressource
|
|
# modules-download-mode: readonly
|
|
|
|
output:
|
|
format: colored-line-number
|
|
print-issued-lines: true
|
|
print-linter-name: true
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
check-type-assertions: true
|
|
check-blank: true
|
|
govet:
|
|
check-shadowing: true
|
|
settings:
|
|
printf:
|
|
funcs:
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
|
|
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
|
|
golint:
|
|
min-confidence: 0.8
|
|
gofmt:
|
|
simplify: true
|
|
goimports:
|
|
local-prefixes: github.com/fbonhomm/api-go-example/source
|
|
gocyclo:
|
|
min-complexity: 10
|
|
maligned:
|
|
suggest-new: true
|
|
dupl:
|
|
threshold: 100
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
depguard:
|
|
list-type: blacklist
|
|
include-go-root: false
|
|
packages:
|
|
- github.com/davecgh/go-spew/spew
|
|
misspell:
|
|
locale: US
|
|
lll:
|
|
line-length: 120
|
|
nakedret:
|
|
max-func-lines: 40
|
|
prealloc:
|
|
simple: true
|
|
range-loops: true
|
|
for-loops: false
|
|
gocritic:
|
|
enabled-tags:
|
|
- performance
|
|
- style
|
|
- experimental
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
- maligned
|
|
- prealloc
|
|
- gochecknoglobals
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- text: "weak cryptographic primitive"
|
|
linters:
|
|
- gosec
|