nurse/.golangci.yml

134 lines
2.3 KiB
YAML
Raw Normal View History

2022-04-28 16:35:02 +00:00
linters-settings:
dupl:
threshold: 100
funlen:
lines: 100
statements: 50
gci:
local-prefixes: code.1533b4dc0.de/prskr/nurse
2022-04-28 16:35:02 +00:00
goconst:
min-len: 2
min-occurrences: 2
gocritic:
enabled-tags:
- diagnostic
- opinionated
- performance
disabled-checks:
- ifElseChain
- octalLiteral
- wrapperFunc
# see https://github.com/golangci/golangci-lint/issues/2649
- hugeParam
- rangeValCopy
# settings:
# hugeParam:
# sizeThreshold: 200
gocyclo:
min-complexity: 15
goimports:
local-prefixes: code.1533b4dc0.de/prskr/nurse
2022-04-28 16:35:02 +00:00
golint:
min-confidence: 0
gomnd:
settings:
mnd:
# don't include the "operation" and "assign"
checks:
- argument
- case
- condition
- return
gomoddirectives:
replace-allow-list: []
govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment
# see https://github.com/golangci/golangci-lint/issues/2649
- nilness
- unusedwrite
importas:
no-unaliased: true
lll:
line-length: 140
misspell:
locale: US
2022-04-28 16:35:02 +00:00
linters:
disable-all: true
enable:
- contextcheck
- deadcode
- dogsled
- dupl
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exportloopref
- funlen
- gocognit
- goconst
2022-06-09 20:12:45 +00:00
- gocritic
2022-04-28 16:35:02 +00:00
- gocyclo
- godox
- gofumpt
- goimports
- gomoddirectives
- gomnd
- gosec
2022-06-09 20:12:45 +00:00
# - gosimple
2022-04-28 16:35:02 +00:00
- govet
- ifshort
- importas
- ineffassign
2022-06-09 20:12:45 +00:00
- ireturn
2022-04-28 16:35:02 +00:00
- lll
- misspell
- nakedret
- nestif
- nilnil
- noctx
2022-06-09 20:12:45 +00:00
- nosprintfhostport
2022-04-28 16:35:02 +00:00
- paralleltest
- prealloc
- predeclared
- promlinter
2022-06-09 20:12:45 +00:00
# - staticcheck
2022-04-28 16:35:02 +00:00
- structcheck
2022-06-09 20:12:45 +00:00
# - stylecheck
2022-04-28 16:35:02 +00:00
- tenv
- testpackage
- thelper
- typecheck
- unconvert
- unparam
- varcheck
- whitespace
# - unused
- wastedassign
issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
- path: _test\.go
linters:
- dupl
- funlen
- gocognit
- gomnd
- govet
- path: magefiles/
linters:
- deadcode
run:
skip-files:
- ".*.mock.\\.go$"
modules-download-mode: readonly
timeout: 5m