- Notifications
You must be signed in to change notification settings - Fork906
fix: correct spurious edits made during the lint fixing slog#17113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -24,30 +24,19 @@ linters-settings: | ||
enabled-checks: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. What's the reason for removing these? Just invalid/old? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yeah they're covered by other linters, a bunch of warnings about already enabled so I removed them | ||
# - appendAssign | ||
# - appendCombine | ||
# - assignOp | ||
# - badCall | ||
- badLock | ||
- badRegexp | ||
- boolExprSimplify | ||
# - builtinShadow | ||
- builtinShadowDecl | ||
# - commentedOutCode | ||
- commentedOutImport | ||
- deferUnlambda | ||
# - deprecatedComment | ||
# - docStub | ||
- dupImport | ||
# - elseif | ||
- emptyFallthrough | ||
# - emptyStringTest | ||
@@ -56,56 +45,43 @@ linters-settings: | ||
# - exitAfterDefer | ||
# - exposedSyncMutex | ||
# - filepathJoin | ||
- hexLiteral | ||
# - httpNoBody | ||
# - hugeParam | ||
# - ifElseChain | ||
# - importShadow | ||
- indexAlloc | ||
- initClause | ||
- methodExprCall | ||
# - nestingReduce | ||
- nilValReturn | ||
# - octalLiteral | ||
# - paramTypeCombine | ||
# - preferStringWriter | ||
# - preferWriteByte | ||
# - ptrToRefParam | ||
# - rangeExprCopy | ||
# - rangeValCopy | ||
- regexpPattern | ||
# - regexpSimplify | ||
- ruleguard | ||
# - sloppyReassign | ||
- sortSlice | ||
- sprintfQuotedString | ||
- sqlQuery | ||
# - stringConcatSimplify | ||
# - stringXbytes | ||
# - suspiciousSorting | ||
- truncateCmp | ||
- typeAssertChain | ||
# - typeDefFirst | ||
# - typeUnparen | ||
# - unlabelStmt | ||
# - unlambda | ||
# - unnamedResult | ||
# - unnecessaryBlock | ||
# - unnecessaryDefer | ||
# - unslice | ||
- weakCond | ||
# - whyNoLint | ||
# - wrapperFunc | ||
@@ -208,7 +184,7 @@ issues: | ||
- node_modules | ||
- .git | ||
exclude-files: | ||
- scripts/rules.go | ||
# Rules listed here: https://github.com/securego/gosec#available-rules | ||
@@ -224,15 +200,16 @@ issues: | ||
- path: scripts/* | ||
linters: | ||
- exhaustruct | ||
- path: scripts/rules.go | ||
linters: | ||
- ALL | ||
fix: true | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
run: | ||
timeout: 10m | ||
# Over time, add more and more linters from | ||
# https://golangci-lint.run/usage/linters/ as the code improves. | ||
Uh oh!
There was an error while loading.Please reload this page.