mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-01 23:15:27 +08:00
74 lines
1.2 KiB
YAML
74 lines
1.2 KiB
YAML
version: "2"
|
|
|
|
run:
|
|
tests: true
|
|
|
|
linters:
|
|
default: standard
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- unused
|
|
settings:
|
|
dupl:
|
|
threshold: 100
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
gocritic:
|
|
enabled-tags:
|
|
- diagnostic
|
|
- experimental
|
|
- opinionated
|
|
- performance
|
|
- style
|
|
disabled-checks:
|
|
- wrapperFunc
|
|
- rangeValCopy
|
|
- hugeParam
|
|
gocyclo:
|
|
min-complexity: 15
|
|
lll:
|
|
line-length: 140
|
|
misspell:
|
|
locale: US
|
|
nakedret:
|
|
max-func-lines: 30
|
|
prealloc:
|
|
simple: true
|
|
range-loops: true
|
|
for-loops: false
|
|
exclusions:
|
|
generated: lax
|
|
rules:
|
|
- path: (.+)\.go$
|
|
text: "ST1000: at least one file in a package should have a package comment"
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
- vendor$
|
|
- webui/node_modules$
|
|
|
|
issues:
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
settings:
|
|
goimports:
|
|
local-prefixes:
|
|
- ds2api
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
- vendor$
|
|
- webui/node_modules$
|