2023-04-04 13:47:59 +00:00
|
|
|
# This file contains all available configuration options
|
|
|
|
# with their default values.
|
|
|
|
|
|
|
|
# options for analysis running
|
|
|
|
run:
|
|
|
|
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
2023-04-17 08:21:21 +00:00
|
|
|
timeout: 10m
|
2023-04-04 13:47:59 +00:00
|
|
|
|
|
|
|
# include test files or not, default is true
|
2023-04-17 08:21:21 +00:00
|
|
|
tests: false
|
2023-04-04 13:47:59 +00:00
|
|
|
|
|
|
|
# output configuration options
|
|
|
|
output:
|
|
|
|
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
|
|
|
format: tab
|
|
|
|
|
|
|
|
# all available settings of specific linters
|
|
|
|
linters-settings:
|
|
|
|
exhaustive:
|
|
|
|
# indicates that switch statements are to be considered exhaustive if a
|
|
|
|
# 'default' case is present, even if all enum members aren't listed in the
|
|
|
|
# switch
|
|
|
|
default-signifies-exhaustive: true
|
|
|
|
govet:
|
|
|
|
# report about shadowed variables
|
|
|
|
check-shadowing: false
|
2023-04-17 08:21:21 +00:00
|
|
|
staticcheck:
|
|
|
|
checks: ["all", "-SA1019"] # TODO Enable SA1019 after deprecated warning are fixed.
|
|
|
|
funlen:
|
|
|
|
lines: 80 # default 60
|
|
|
|
statements: 60 # default 40
|
|
|
|
gocognit:
|
|
|
|
min-complexity: 40 # default 30
|
2023-04-04 13:47:59 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
# mandatory linters
|
|
|
|
- govet
|
|
|
|
- revive
|
|
|
|
|
|
|
|
# some default golangci-lint linters
|
|
|
|
- errcheck
|
|
|
|
- gosimple
|
2023-04-17 08:21:21 +00:00
|
|
|
- godot
|
2023-04-04 13:47:59 +00:00
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
|
|
|
|
# extra linters
|
2023-04-17 08:21:21 +00:00
|
|
|
- bidichk
|
|
|
|
- durationcheck
|
2023-04-04 13:47:59 +00:00
|
|
|
- exhaustive
|
2023-04-17 08:21:21 +00:00
|
|
|
- exportloopref
|
2023-04-04 13:47:59 +00:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
2023-04-17 08:21:21 +00:00
|
|
|
- misspell
|
|
|
|
- predeclared
|
|
|
|
- reassign
|
|
|
|
- whitespace
|
|
|
|
- containedctx
|
|
|
|
- funlen
|
|
|
|
- gocognit
|
|
|
|
- contextcheck
|
2023-04-04 13:47:59 +00:00
|
|
|
disable-all: true
|
|
|
|
fast: false
|