Skip to content

Commit 11c44fb

Browse files
authored
vet: add comment explaining reason for revive lineter disabled rules (#7634)
1 parent 3b626a7 commit 11c44fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/revive.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
[rule.use-any]
2525

2626
# Disabled rules
27-
# https://github.com/grpc/grpc-go/issues/7444 to track TODO(s)
28-
[rule.empty-block]
27+
[rule.empty-block] # Disabled to allow intentional no-op blocks (e.g., channel draining).
2928
Disabled = true
30-
[rule.import-shadowing]
29+
[rule.import-shadowing] # Disabled to allow intentional reuse of variable names that are the same as package imports.
3130
Disabled = true
3231

0 commit comments

Comments
 (0)