Created
September 21, 2023 23:34
-
-
Save o1o1o3/e3449027375ab3d9446d5823624049f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run: | |
| timeout: 15s | |
| issues-exit-code: 1 | |
| tests: true | |
| skip-dirs-use-default: true | |
| output: | |
| format: colored-line-number | |
| print-issued-lines: true | |
| print-linter-name: true | |
| linters: | |
| disable-all: true | |
| enable: | |
| - bodyclose | |
| - dogsled | |
| - dupl | |
| - errcheck | |
| - exportloopref | |
| - funlen | |
| - gocognit | |
| - goconst | |
| - gocritic | |
| - gocyclo | |
| - godot | |
| - godox | |
| - gofmt | |
| - goimports | |
| - gomnd | |
| - goprintffuncname | |
| - gosec | |
| - gosimple | |
| - govet | |
| - ineffassign | |
| - interfacebloat | |
| - misspell | |
| - nakedret | |
| - noctx | |
| - nolintlint | |
| - exportloopref | |
| - staticcheck | |
| - stylecheck | |
| - unconvert | |
| - unparam | |
| - unused | |
| - whitespace | |
| - wsl | |
| - lll | |
| - prealloc | |
| - gochecknoinits | |
| linters-settings: | |
| errcheck: | |
| check-type-assertions: false | |
| check-blank: false | |
| gosec: | |
| exclude: | |
| - "G104" | |
| funlen: | |
| lines: 100 | |
| statements: 60 | |
| govet: | |
| check-shadowing: true | |
| settings: | |
| printf: | |
| funcs: | |
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof | |
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf | |
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf | |
| - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf | |
| gofmt: | |
| simplify: true | |
| goimports: | |
| gocyclo: | |
| min-complexity: 30 | |
| gocognit: | |
| min-complexity: 30 | |
| maligned: | |
| suggest-new: true | |
| dupl: | |
| threshold: 100 | |
| goconst: | |
| min-len: 3 | |
| min-occurrences: 3 | |
| misspell: | |
| locale: US | |
| ignore-words: | |
| lll: | |
| line-length: 120 | |
| tab-width: 1 | |
| unused: | |
| check-exported: false | |
| unparam: | |
| check-exported: false | |
| nakedret: | |
| max-func-lines: 30 | |
| prealloc: | |
| simple: true | |
| range-loops: true | |
| for-loops: false | |
| gocritic: | |
| settings: | |
| hugeParam: | |
| sizeThreshold: 250 | |
| rangeValCopy: | |
| sizeThreshold: 32 | |
| enabled-checks: | |
| - argOrder | |
| - badLock | |
| - badRegexp | |
| - builtinShadowDecl | |
| - commentFormatting | |
| - elseif | |
| - emptyDecl | |
| - evalOrder | |
| - externalErrorReassign | |
| - filepathJoin | |
| - mapKey | |
| - nilValReturn | |
| - regexpPattern | |
| - returnAfterHttpError | |
| - sortSlice | |
| - sprintfQuotedString | |
| - sqlQuery | |
| - syncMapLoadAndDelete | |
| - truncateCmp | |
| - unnecessaryDefer | |
| - unslice | |
| - weakCond | |
| - wrapperFunc | |
| - boolExprSimplify | |
| - builtinShadow | |
| - commentedOutImport | |
| - deferUnlambda | |
| - docStub | |
| - dupImport | |
| - emptyStringTest | |
| - hexLiteral | |
| - httpNoBody | |
| - ifElseChain | |
| - importShadow | |
| - initClause | |
| - methodExprCall | |
| - nestingReduce | |
| - octalLiteral | |
| - paramTypeCombine | |
| - preferFilepathJoin | |
| - ptrToRefParam | |
| - redundantSprint | |
| - regexpSimplify | |
| - ruleguard | |
| - stringConcatSimplify | |
| - timeExprSimplify | |
| - tooManyResultsChecker | |
| - typeAssertChain | |
| - typeDefFirst | |
| - typeUnparen | |
| - unlabelStmt | |
| - unnamedResult | |
| - unnecessaryBlock | |
| - yodaStyleExpr | |
| - appendCombine | |
| - equalFold | |
| - hugeParam | |
| - indexAlloc | |
| - preferDecodeRune | |
| - preferFprint | |
| - preferStringWriter | |
| - preferWriteByte | |
| - rangeExprCopy | |
| - rangeValCopy | |
| - sliceClear | |
| - stringXbytes | |
| gomnd: | |
| checks: | |
| - argument | |
| - case | |
| - condition | |
| - operation | |
| - return | |
| - assign | |
| godox: | |
| keywords: | |
| - BUG | |
| - FIXME | |
| - NOTE | |
| - OPTIMIZE | |
| - HACK | |
| dogsled: | |
| max-blank-identifiers: 2 | |
| stylecheck: | |
| go: 1.20 | |
| checks: [ "all", "-ST1003","-ST1000"] | |
| whitespace: | |
| multi-if: false | |
| multi-func: false | |
| wsl: | |
| strict-append: true | |
| allow-assign-and-call: true | |
| allow-multiline-assign: true | |
| allow-cuddle-declarations: false | |
| allow-trailing-comment: false | |
| force-case-trailing-whitespace: 0 | |
| auto-fix: true | |
| nolintlint: | |
| allow-unused: false | |
| require-explanation: false | |
| require-specific: false | |
| issues: | |
| exclude-rules: | |
| - path: _test\.go | |
| linters: | |
| - gocyclo | |
| - errcheck | |
| - dupl | |
| - gosec | |
| - funlen | |
| - linters: | |
| - lll | |
| source: "^//go:generate " | |
| - linters: | |
| - golint | |
| text: "don't use an underscore in package name" | |
| - linters: | |
| - golint | |
| text: "should have comment or be unexported" | |
| exclude-use-default: false | |
| max-issues-per-linter: 0 | |
| max-same-issues: 0 | |
| new: false | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment