代码拉取完成,页面将自动刷新
---
run:
concurrency: 6
deadline: 5m
issues:
# Maximum issues count per one linter.
# Set to 0 to disable.
# Default: 50
max-issues-per-linter: 0
# Maximum count of issues with the same text.
# Set to 0 to disable.
# Default: 3
max-same-issues: 0
# Exclude previously existing issues from the report
new: true
new-from-rev: HEAD
linters:
disable-all: true
enable:
- asciicheck
#- bodyclose # Temporarily disabled.
#- depguard # Temporarily disabled.
- dogsled
#- errcheck # Temporarily disabled.
- errorlint
- exhaustive
- exportloopref
- gci
#- gochecknoinits # Temporarily disabled.
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
#- goerr113 # Temporarily disabled.
- gofmt
- gofumpt
- goheader
- goimports
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
#- lll # Temporarily disabled.
- makezero
- misspell
- nakedret
- nestif
- noctx
- nolintlint
- predeclared
- staticcheck
- stylecheck
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- whitespace
- wrapcheck
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
exhaustive:
# https://golangci-lint.run/usage/linters/#exhaustive
default-signifies-exhaustive: true
godot:
exclude:
- "^ -- "
govet:
enable:
- fieldalignment
godox:
keywords:
- BUG
- FIXME
- HACK
gci:
sections:
- standard
- default
- prefix(github.com/ossf/criticality_score)
gocritic:
enabled-checks:
# Diagnostic
- appendAssign
- badCond
- caseOrder
- codegenComment
- commentedOutCode
- deprecatedComment
- dupBranchBody
- dupCase
- dupSubExpr
#- exitAfterDefer # Temporarily disabled
- flagName
- nilValReturn
- weakCond
- octalLiteral
# Performance
- appendCombine
#- hugeParam # Crashing.
- rangeExprCopy
- rangeValCopy
# Style
- boolExprSimplify
- captLocal
- commentFormatting
- commentedOutImport
- defaultCaseOrder
- docStub
- elseif
- emptyFallthrough
- hexLiteral
- ifElseChain
- methodExprCall
- singleCaseSwitch
- typeAssertChain
- typeSwitchVar
- underef
- unlabelStmt
- unlambda
# Opinionated
- builtinShadow
- importShadow
- initClause
- nestingReduce
- paramTypeCombine
- ptrToRefParam
- typeUnparen
- unnecessaryBlock
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。