2021-02-15 19:01:30 +03:00
|
|
|
---
|
|
|
|
run:
|
|
|
|
concurrency: 6
|
|
|
|
deadline: 5m
|
2021-04-28 00:00:50 +03:00
|
|
|
issues:
|
2022-03-23 05:23:39 +03:00
|
|
|
# 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
|
|
|
|
new-from-rev: ""
|
2023-04-10 22:18:27 +03:00
|
|
|
exclude-rules:
|
|
|
|
- path: '(.+)_test\.go'
|
|
|
|
linters:
|
|
|
|
- funlen
|
|
|
|
- goconst
|
|
|
|
- gocyclo
|
2021-05-24 06:51:52 +03:00
|
|
|
skip-files:
|
|
|
|
- cron/data/request.pb.go # autogenerated
|
2021-02-15 19:01:30 +03:00
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- asciicheck
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
|
|
|
- errcheck
|
2021-05-30 07:21:43 +03:00
|
|
|
- errorlint
|
2021-02-15 19:01:30 +03:00
|
|
|
- exhaustive
|
|
|
|
- exportloopref
|
2021-05-24 06:51:52 +03:00
|
|
|
- gci
|
2021-05-22 20:19:52 +03:00
|
|
|
- gochecknoinits
|
2021-02-15 19:01:30 +03:00
|
|
|
- gocognit
|
|
|
|
- goconst
|
2021-05-20 09:21:01 +03:00
|
|
|
- gocritic
|
2021-02-15 19:01:30 +03:00
|
|
|
- gocyclo
|
|
|
|
- godot
|
|
|
|
- godox
|
2021-05-22 22:36:47 +03:00
|
|
|
- goerr113
|
2021-02-15 19:01:30 +03:00
|
|
|
- gofmt
|
|
|
|
- gofumpt
|
|
|
|
- goheader
|
|
|
|
- goimports
|
|
|
|
- gomodguard
|
|
|
|
- goprintffuncname
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
2021-05-20 09:38:58 +03:00
|
|
|
- govet
|
2021-02-15 19:01:30 +03:00
|
|
|
- ineffassign
|
2021-05-22 20:29:18 +03:00
|
|
|
- lll
|
2021-05-24 21:19:37 +03:00
|
|
|
- makezero
|
2021-02-15 19:01:30 +03:00
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- nestif
|
|
|
|
- predeclared
|
|
|
|
- staticcheck
|
2021-05-22 20:45:32 +03:00
|
|
|
- stylecheck
|
2021-02-15 19:01:30 +03:00
|
|
|
- thelper
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unused
|
|
|
|
- whitespace
|
|
|
|
- wrapcheck
|
|
|
|
linters-settings:
|
|
|
|
errcheck:
|
|
|
|
check-type-assertions: true
|
|
|
|
check-blank: true
|
2023-03-23 20:25:44 +03:00
|
|
|
errorlint:
|
|
|
|
# TODO remove this when project migrates to golang 1.20
|
|
|
|
# https://golangci-lint.run/usage/linters/#errorlint
|
|
|
|
errorf-multi: false
|
2022-07-13 20:50:51 +03:00
|
|
|
exhaustive:
|
|
|
|
# https://golangci-lint.run/usage/linters/#exhaustive
|
|
|
|
default-signifies-exhaustive: true
|
2021-02-28 05:55:36 +03:00
|
|
|
govet:
|
|
|
|
enable:
|
|
|
|
- fieldalignment
|
2021-02-15 19:01:30 +03:00
|
|
|
godox:
|
|
|
|
keywords:
|
|
|
|
- BUG
|
|
|
|
- FIXME
|
|
|
|
- HACK
|
2021-05-24 06:51:52 +03:00
|
|
|
gci:
|
2022-02-20 00:14:22 +03:00
|
|
|
sections:
|
|
|
|
- standard
|
|
|
|
- default
|
|
|
|
- prefix(github.com/ossf/scorecard)
|
2021-02-15 19:01:30 +03:00
|
|
|
gocritic:
|
|
|
|
enabled-checks:
|
|
|
|
# Diagnostic
|
|
|
|
- appendAssign
|
|
|
|
- badCond
|
|
|
|
- caseOrder
|
|
|
|
- codegenComment
|
|
|
|
- commentedOutCode
|
|
|
|
- deprecatedComment
|
|
|
|
- dupBranchBody
|
|
|
|
- dupCase
|
|
|
|
- dupSubExpr
|
|
|
|
- exitAfterDefer
|
|
|
|
- flagName
|
|
|
|
- nilValReturn
|
|
|
|
- weakCond
|
|
|
|
- octalLiteral
|
|
|
|
|
|
|
|
# Performance
|
|
|
|
- appendCombine
|
|
|
|
- hugeParam
|
|
|
|
- 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
|
2021-11-08 21:57:03 +03:00
|
|
|
wrapcheck:
|
|
|
|
ignorePackageGlobs:
|
2022-01-12 22:49:01 +03:00
|
|
|
- github.com/ossf/scorecard/v4/checks/fileparser
|