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
|
2020-12-30 11:06:44 +00:00
|
|
|
timeout: 5m
|
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
|
|
|
|
|
|
|
|
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
|
2020-12-30 11:06:44 +00:00
|
|
|
disable-all: true
|
|
|
|
fast: false
|