3 Star 0 Fork 1

mirrors_ossf / criticality_score

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.golangci.yml 2.67 KB
一键复制 编辑 原始数据 按行查看 历史
---
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
1
https://gitee.com/mirrors_ossf/criticality_score.git
git@gitee.com:mirrors_ossf/criticality_score.git
mirrors_ossf
criticality_score
criticality_score
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891