What rule do you want to change?
no-empty
What change do you want to make?
Generate fewer warnings
How do you think the change should be implemented?
A new default behavior
Example code
switch (foo) {
/* empty */
}
What does the rule currently do for this code?
The rule reports an error for the empty switch statement, even though it contains a comment.
What will the rule do after it's changed?
After the change, the rule will ignore switch statements that are empty but contain a comment, similar to how it handles other empty blocks.
Participation
Additional comments
No response
What rule do you want to change?
no-empty
What change do you want to make?
Generate fewer warnings
How do you think the change should be implemented?
A new default behavior
Example code
What does the rule currently do for this code?
The rule reports an error for the empty switch statement, even though it contains a comment.
What will the rule do after it's changed?
After the change, the rule will ignore switch statements that are empty but contain a comment, similar to how it handles other empty blocks.
Participation
Additional comments
No response