mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-13 23:56:35 +03:00
47eda487f5
Fixed these deprecated linters golangci_lint: unexpected output on stderr: level=warning msg="[runner] The linter 'interfacer' is deprecated due to: The repository of the linter has been archived by the owner." level=warning msg="[runner] The linter 'maligned' is deprecated due to: The repository of the linter has been archived by the owner. Use govet 'fieldalignment' instead."
143 lines
2.4 KiB
YAML
143 lines
2.4 KiB
YAML
---
|
|
run:
|
|
concurrency: 6
|
|
deadline: 5m
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- asciicheck
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- exhaustive
|
|
- exportloopref
|
|
- gochecknoinits
|
|
- gocognit
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- godot
|
|
- godox
|
|
- goerr113
|
|
- gofmt
|
|
- gofumpt
|
|
- goheader
|
|
- goimports
|
|
- golint
|
|
- gomnd
|
|
- gomodguard
|
|
- goprintffuncname
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- nestif
|
|
- noctx
|
|
- nolintlint
|
|
- paralleltest
|
|
- prealloc
|
|
- predeclared
|
|
- rowserrcheck
|
|
- scopelint
|
|
- sqlclosecheck
|
|
- staticcheck
|
|
- structcheck
|
|
- stylecheck
|
|
- thelper
|
|
- tparallel
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- varcheck
|
|
- whitespace
|
|
- wrapcheck
|
|
linters-settings:
|
|
errcheck:
|
|
check-type-assertions: true
|
|
check-blank: true
|
|
govet:
|
|
enable:
|
|
- fieldalignment
|
|
godox:
|
|
keywords:
|
|
- BUG
|
|
- FIXME
|
|
- HACK
|
|
gocritic:
|
|
enabled-checks:
|
|
# Diagnostic
|
|
- appendAssign
|
|
- argOrder
|
|
- badCond
|
|
- caseOrder
|
|
- codegenComment
|
|
- commentedOutCode
|
|
- deprecatedComment
|
|
- dupArg
|
|
- dupBranchBody
|
|
- dupCase
|
|
- dupSubExpr
|
|
- exitAfterDefer
|
|
- flagDeref
|
|
- flagName
|
|
- nilValReturn
|
|
- offBy1
|
|
- sloppyReassign
|
|
- weakCond
|
|
- octalLiteral
|
|
|
|
# Performance
|
|
- appendCombine
|
|
- equalFold
|
|
- hugeParam
|
|
- indexAlloc
|
|
- rangeExprCopy
|
|
- rangeValCopy
|
|
|
|
# Style
|
|
- assignOp
|
|
- boolExprSimplify
|
|
- captLocal
|
|
- commentFormatting
|
|
- commentedOutImport
|
|
- defaultCaseOrder
|
|
- docStub
|
|
- elseif
|
|
- emptyFallthrough
|
|
- emptyStringTest
|
|
- hexLiteral
|
|
- ifElseChain
|
|
- methodExprCall
|
|
- regexpMust
|
|
- singleCaseSwitch
|
|
- sloppyLen
|
|
- stringXbytes
|
|
- switchTrue
|
|
- typeAssertChain
|
|
- typeSwitchVar
|
|
- underef
|
|
- unlabelStmt
|
|
- unlambda
|
|
- unslice
|
|
- valSwap
|
|
- wrapperFunc
|
|
- yodaStyleExpr
|
|
|
|
# Opinionated
|
|
- builtinShadow
|
|
- importShadow
|
|
- initClause
|
|
- nestingReduce
|
|
- paramTypeCombine
|
|
- ptrToRefParam
|
|
- typeUnparen
|
|
- unnamedResult
|
|
- unnecessaryBlock
|