forked from grpc/grpc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enable early-return and unnecessary-stmt and useless-break fro…
…m revive (grpc#8100)
- Loading branch information
Showing
7 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,60 @@ | ||
# Enabled rules | ||
[rule.blank-imports] | ||
|
||
[rule.context-as-argument] | ||
|
||
[rule.context-keys-type] | ||
|
||
[rule.dot-imports] | ||
|
||
[rule.errorf] | ||
|
||
[rule.error-return] | ||
|
||
[rule.error-strings] | ||
|
||
[rule.error-naming] | ||
|
||
[rule.exported] | ||
|
||
[rule.increment-decrement] | ||
|
||
[rule.indent-error-flow] | ||
arguments = ["preserveScope"] | ||
|
||
[rule.package-comments] | ||
|
||
[rule.range] | ||
|
||
[rule.receiver-naming] | ||
|
||
[rule.superfluous-else] | ||
arguments = ["preserveScope"] | ||
|
||
[rule.time-naming] | ||
[rule.var-naming] | ||
|
||
[rule.unexported-return] | ||
[rule.unused-parameter] | ||
|
||
[rule.unnecessary-stmt] | ||
|
||
[rule.unreachable-code] | ||
[rule.var-declaration] | ||
|
||
[rule.unused-parameter] | ||
|
||
[rule.use-any] | ||
|
||
[rule.useless-break] | ||
|
||
[rule.var-declaration] | ||
|
||
[rule.var-naming] | ||
|
||
# Disabled rules | ||
[rule.empty-block] # Disabled to allow intentional no-op blocks (e.g., channel draining). | ||
Disabled = true | ||
|
||
[rule.import-shadowing] # Disabled to allow intentional reuse of variable names that are the same as package imports. | ||
Disabled = true | ||
|
||
[rule.redefines-builtin-id] # Disabled to allow intentional reuse of variable names that are the same as built-in functions. | ||
Disabled = true | ||
|
||
|
This file contains 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
This file contains 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