2020-05-06 17:36:34 +00:00
|
|
|
run:
|
2022-07-19 20:25:00 +00:00
|
|
|
timeout: 10m
|
2020-05-06 17:36:34 +00:00
|
|
|
issues-exit-code: 1
|
|
|
|
tests: true
|
|
|
|
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
dupl:
|
|
|
|
threshold: 150
|
|
|
|
errcheck:
|
|
|
|
check-type-assertions: false
|
|
|
|
check-blank: false
|
|
|
|
goconst:
|
|
|
|
min-len: 3
|
|
|
|
min-occurrences: 3
|
|
|
|
gocyclo:
|
|
|
|
min-complexity: 15
|
|
|
|
gofmt:
|
|
|
|
simplify: true
|
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/drakkan/sftpgo
|
2021-05-06 20:06:22 +00:00
|
|
|
#govet:
|
|
|
|
# report about shadowed variables
|
|
|
|
#check-shadowing: true
|
|
|
|
#enable:
|
|
|
|
# - fieldalignment
|
2020-05-06 17:36:34 +00:00
|
|
|
|
2021-11-27 16:04:13 +00:00
|
|
|
issues:
|
|
|
|
include:
|
|
|
|
- EXC0002
|
|
|
|
- EXC0012
|
|
|
|
- EXC0013
|
|
|
|
- EXC0014
|
|
|
|
- EXC0015
|
|
|
|
|
2020-05-06 17:36:34 +00:00
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- goconst
|
|
|
|
- errcheck
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
2021-05-26 05:48:37 +00:00
|
|
|
- revive
|
2020-05-06 17:36:34 +00:00
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- bodyclose
|
|
|
|
- gocyclo
|
|
|
|
- misspell
|
|
|
|
- whitespace
|
|
|
|
- dupl
|
|
|
|
- rowserrcheck
|
2021-10-23 13:47:21 +00:00
|
|
|
- dogsled
|
|
|
|
- govet
|