2023-03-30 10:43:21 +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
|
2024-07-12 13:58:19 +00:00
|
|
|
timeout: 20m
|
2023-03-30 10:43:21 +00:00
|
|
|
|
|
|
|
# include test files or not, default is true
|
|
|
|
tests: false
|
|
|
|
|
|
|
|
# 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
|
|
|
|
staticcheck:
|
2023-06-25 09:57:49 +00:00
|
|
|
checks: ["all"]
|
2023-03-30 10:43:21 +00:00
|
|
|
funlen:
|
|
|
|
lines: 80 # default 60
|
|
|
|
statements: 60 # default 40
|
|
|
|
gocognit:
|
|
|
|
min-complexity: 40 # default 30
|
2024-07-12 13:58:19 +00:00
|
|
|
importas:
|
|
|
|
no-unaliased: true
|
|
|
|
no-extra-aliases: false
|
|
|
|
alias:
|
|
|
|
pkg: git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object
|
|
|
|
alias: objectSDK
|
|
|
|
custom:
|
|
|
|
truecloudlab-linters:
|
|
|
|
path: bin/linters/external_linters.so
|
|
|
|
original-url: git.frostfs.info/TrueCloudLab/linters.git
|
2023-03-30 10:43:21 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
# mandatory linters
|
|
|
|
- govet
|
|
|
|
- revive
|
2024-07-12 13:58:19 +00:00
|
|
|
|
|
|
|
# some default golangci-lint linters
|
2023-03-30 10:43:21 +00:00
|
|
|
- errcheck
|
|
|
|
- gosimple
|
2024-07-12 13:58:19 +00:00
|
|
|
- godot
|
2023-03-30 10:43:21 +00:00
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
2024-07-12 13:58:19 +00:00
|
|
|
|
|
|
|
# extra linters
|
2023-03-30 10:43:21 +00:00
|
|
|
- bidichk
|
|
|
|
- durationcheck
|
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- misspell
|
|
|
|
- predeclared
|
|
|
|
- reassign
|
2024-07-12 13:58:19 +00:00
|
|
|
- whitespace
|
2023-03-30 10:43:21 +00:00
|
|
|
- containedctx
|
|
|
|
- funlen
|
|
|
|
- gocognit
|
|
|
|
- contextcheck
|
2024-07-12 13:58:19 +00:00
|
|
|
- importas
|
|
|
|
- truecloudlab-linters
|
|
|
|
- perfsprint
|
|
|
|
- testifylint
|
|
|
|
- protogetter
|
2023-03-30 10:43:21 +00:00
|
|
|
disable-all: true
|
|
|
|
fast: false
|