代码拉取完成,页面将自动刷新
run:
deadline: 10m
issues-exit-code: 1
tests: true
skip-dirs:
- vendor
skip-files:
- ".*\\.pb\\.go$"
- ".*\\.dbx\\.go$"
linters:
enable:
- gomnd
- govet
- golint
- staticcheck
- errcheck
- ineffassign
- varcheck
- structcheck
- deadcode
- bodyclose
- nakedret
- gofmt
- misspell
- unconvert
- scopelint
- gocritic
- dogsled
- gosec
- goimports
- gocyclo
- godox
- maligned
- misspell
- goconst
disable:
- unused
fast: false
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
linters-settings:
dogsled:
errcheck:
check-type-assertions: false
check-blank: false
ignore: fmt:.*,io/ioutil:^Read.*
govet:
check-shadowing: true
use-installed-packages: false
gomnd:
settings:
mnd:
checks: argument, case, condition, operation, return, assign
ignored-numbers: 2
gocritic:
disabled-checks:
- ifElseChain
goimports:
local-prefixes: isula.org/isula-build
golint:
min-confidence: 0.8
gofmt:
simplify: true
gocyclo:
min-complexity: 20
maligned:
suggest-new: true
dupl:
threshold: 150
goconst:
min-len: 3
min-occurrences: 3
misspell:
locale: US
lll:
line-length: 140
tab-width: 1
unparam:
algo: cha
check-exported: false
nakedret:
max-func-lines: 30
prealloc:
simple: true
range-loops: true
for-loops: false
issues:
exclude-rules:
path: _test\.go
linters:
- scopelint
- errcheck
- gosec
- goconst
- maligned
- ineffassign
max-issues-per-linter: 0
max-same-issues: 0
new: true
new-from-rev: "HEAD~"
exclude-use-default: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。