[Suggestion]Let rule S2333 detect redundant modifiers of enum is recommended

Affects Sonarqube Version:
Sonarqube version: 8.1.0.31237
sonar-scanner version: 4.2.0.1873-windows

Rule:
S2333: Redundant modifiers should not be used

Description:
It is recommended add modifiers checking in the case of enum defined in a class, where static modifiers can be ignored

Code Sample demonstrating the issue:

public class Bar {
    public static enum FoorBar {    // static ignored
        FOO;
    }
}

Expected outcome:
Suggestion

Running Sonarqube through:
command line

Hello,

Thanks for your suggestion.

When you are saying “It is recommended add modifiers …”, could you precise where did you read that?

Could you confirm that you would expect the rule S2333 to not raise an issue on the static keyword in your specific example?

Thanks
Alex