2020-12-30 11:06:44 +00:00
|
|
|
# This file contains all available configuration options
|
|
|
|
# with their default values.
|
2020-07-10 14:17:51 +00:00
|
|
|
|
|
|
|
# options for analysis running
|
|
|
|
run:
|
|
|
|
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
2023-06-28 11:05:09 +00:00
|
|
|
timeout: 20m
|
2020-07-10 14:17:51 +00:00
|
|
|
|
|
|
|
# include test files or not, default is true
|
2020-12-30 11:06:44 +00:00
|
|
|
tests: false
|
2020-07-10 14:17:51 +00:00
|
|
|
|
|
|
|
# output configuration options
|
|
|
|
output:
|
|
|
|
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
|
|
|
format: tab
|
|
|
|
|
2020-12-30 11:06:44 +00:00
|
|
|
# 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-03-02 11:06:56 +00:00
|
|
|
staticcheck:
|
|
|
|
checks: ["all", "-SA1019"] # TODO Enable SA1019 after deprecated warning are fixed.
|
2023-03-20 07:01:27 +00:00
|
|
|
funlen:
|
2023-03-20 07:18:24 +00:00
|
|
|
lines: 80 # default 60
|
|
|
|
statements: 60 # default 40
|
|
|
|
gocognit:
|
|
|
|
min-complexity: 40 # default 30
|
2020-12-30 11:06:44 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
# mandatory linters
|
|
|
|
- govet
|
2021-10-04 19:54:14 +00:00
|
|
|
- revive
|
2020-12-30 11:06:44 +00:00
|
|
|
|
|
|
|
# some default golangci-lint linters
|
|
|
|
- errcheck
|
|
|
|
- gosimple
|
2022-10-17 12:03:55 +00:00
|
|
|
- godot
|
2020-12-30 11:06:44 +00:00
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
2022-10-17 12:02:57 +00:00
|
|
|
- unused
|
2020-12-30 11:06:44 +00:00
|
|
|
|
|
|
|
# extra linters
|
2022-10-17 12:30:43 +00:00
|
|
|
- bidichk
|
|
|
|
- durationcheck
|
2020-12-30 11:06:44 +00:00
|
|
|
- exhaustive
|
2022-10-17 12:30:43 +00:00
|
|
|
- exportloopref
|
2020-12-30 11:06:44 +00:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
2022-10-17 12:33:41 +00:00
|
|
|
- misspell
|
2022-10-17 12:37:01 +00:00
|
|
|
- predeclared
|
2022-10-17 12:30:43 +00:00
|
|
|
- reassign
|
|
|
|
- whitespace
|
2023-03-20 06:39:44 +00:00
|
|
|
- containedctx
|
2023-03-20 07:01:27 +00:00
|
|
|
- funlen
|
2023-03-20 07:18:24 +00:00
|
|
|
- gocognit
|
2023-03-20 12:10:53 +00:00
|
|
|
- contextcheck
|
2020-12-30 11:06:44 +00:00
|
|
|
disable-all: true
|
|
|
|
fast: false
|