mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
55 lines
899 B
YAML
55 lines
899 B
YAML
version: "2"
|
|
run:
|
|
issues-exit-code: 1
|
|
tests: true
|
|
linters:
|
|
enable:
|
|
- bodyclose
|
|
- dogsled
|
|
- dupl
|
|
- goconst
|
|
- gocyclo
|
|
- misspell
|
|
- revive
|
|
- rowserrcheck
|
|
- unconvert
|
|
- unparam
|
|
- whitespace
|
|
settings:
|
|
dupl:
|
|
threshold: 150
|
|
errcheck:
|
|
check-type-assertions: false
|
|
check-blank: false
|
|
goconst:
|
|
min-len: 3
|
|
min-occurrences: 3
|
|
gocyclo:
|
|
min-complexity: 15
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
gofmt:
|
|
simplify: true
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/drakkan/sftpgo
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|