You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. There's an identical ticket for the java rules (#3096). Like in the java module, I think we should just make a single rule that flags empty blocks and statements, and remove EmptyIfStmt and the others, which would be covered by this single rule. Relevant rules: EmptyCatchBlock, EmptyIfStmt, EmptyStatementBlock, EmptyTryOrFinallyBlock, EmptyWhileStmt
Proposed Rule Name: EmptyStatement, probably
Proposed Category: Best Practices
Description: Would flag empty blocks and statements like
if
orelse
that have an empty body.See #3164 (comment)
See #3641 (review):
Related issues:
Code Sample: See tests of existing rules
Possible Properties: None
The text was updated successfully, but these errors were encountered: