File tree Expand file tree Collapse file tree
java-checks/src/main/java/org/sonar/java/checks
sonar-java-plugin/src/test/java/org/sonar/plugins/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import org .sonar .plugins .java .api .tree .ModifiersTree ;
3535import org .sonar .plugins .java .api .tree .Tree ;
3636import org .sonar .plugins .java .api .tree .VariableTree ;
37- import org .sonar .squidbridge .annotations .ActivatedByDefault ;
3837import org .sonar .squidbridge .annotations .SqaleConstantRemediation ;
3938import org .sonar .squidbridge .annotations .SqaleSubCharacteristic ;
4039
4544 name = "Loggers should be \" private static final\" and should share a naming convention" ,
4645 priority = Priority .MINOR ,
4746 tags = {Tag .CONVENTION })
48- @ ActivatedByDefault
4947@ SqaleSubCharacteristic (RulesDefinition .SubCharacteristics .UNDERSTANDABILITY )
5048@ SqaleConstantRemediation ("5min" )
5149public class LoggersDeclarationCheck extends BaseTreeVisitor implements JavaFileScanner {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public void should_create_sonar_way_profile() {
4747
4848 assertThat (profile .getLanguage ()).isEqualTo (Java .KEY );
4949 List <ActiveRule > activeRules = profile .getActiveRulesByRepository (CheckList .REPOSITORY_KEY );
50- assertThat (activeRules .size ()).as ("Expected number of rules in profile" ).isGreaterThan ( 220 );
50+ assertThat (activeRules .size ()).as ("Expected number of rules in profile" ).isGreaterThanOrEqualTo ( 232 );
5151 assertThat (profile .getName ()).isEqualTo ("Sonar way" );
5252 assertThat (validation .hasErrors ()).isFalse ();
5353 }
You can’t perform that action at this time.
0 commit comments