--- 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 new-from-rev: "" exclude-rules: - path: '(.+)_test\.go' linters: - funlen - goconst - gocyclo skip-files: - cron/data/request.pb.go # autogenerated linters: disable-all: true enable: - asciicheck - depguard - dogsled - errcheck - errorlint - exhaustive - exportloopref - gci - gochecknoinits - gocognit - goconst - gocritic - gocyclo - godot - godox - goerr113 - gofmt - gofumpt - goheader - goimports - gomodguard - goprintffuncname - gosec - gosimple - govet - ineffassign - lll - makezero - misspell - nakedret - nestif - predeclared - staticcheck - stylecheck - thelper - typecheck - unconvert - unused - whitespace - wrapcheck linters-settings: errcheck: check-type-assertions: true check-blank: true errorlint: # TODO remove this when project migrates to golang 1.20 # https://golangci-lint.run/usage/linters/#errorlint errorf-multi: false exhaustive: # https://golangci-lint.run/usage/linters/#exhaustive default-signifies-exhaustive: true govet: enable: - fieldalignment godox: keywords: - BUG - FIXME - HACK gci: sections: - standard - default - prefix(github.com/ossf/scorecard) 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 wrapcheck: ignorePackageGlobs: - github.com/ossf/scorecard/v4/checks/fileparser