Skip to content

Commit

Permalink
Replace S2479 with S1110
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo-pilastri-sonarsource committed Jun 17, 2024
1 parent 7a28ec8 commit 90c3ee1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
5 changes: 5 additions & 0 deletions its/ruling/src/test/resources/eclipse-jetty/java-S1110.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"org.eclipse.jetty:jetty-project:jetty-slf4j-impl/src/test/java/org/eclipse/jetty/logging/Slf4jEffort.java": [
72
]
}
8 changes: 0 additions & 8 deletions its/ruling/src/test/resources/eclipse-jetty/java-S2479.json

This file was deleted.

3 changes: 0 additions & 3 deletions its/ruling/src/test/resources/sonar-server/java-S2479.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
],
"org.sonarsource.sonarqube:sonar-server:src/main/java/org/sonar/server/qualityprofile/RegisterQualityProfiles.java": [
137
],
"org.sonarsource.sonarqube:sonar-server:src/test/java/org/sonar/server/qualityprofile/RegisterQualityProfilesTest.java": [
118
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ public final class CheckList {
ConstantsShouldBeStaticFinalCheck.class,
ConstructorCallingOverridableCheck.class,
ConstructorInjectionCheck.class,
ControlCharacterInLiteralCheck.class,
ControllerWithRestControllerReplacementCheck.class,
ControllerWithSessionAttributesCheck.class,
CookieHttpOnlyCheck.class,
Expand Down Expand Up @@ -1148,7 +1149,6 @@ public final class CheckList {
URLHashCodeAndEqualsCheck.class,
UselessExtendsCheck.class,
UselessIncrementCheck.class,
UselessParenthesesCheck.class,
UseMotionSensorWithoutGyroscopeCheck.class,
UserEnumerationCheck.class,
UseSwitchExpressionCheck.class,
Expand Down Expand Up @@ -1302,7 +1302,6 @@ public final class CheckList {
CollapsibleIfCandidateCheck.class,
CollectorsToListCheck.class,
CommentedOutCodeLineCheck.class,
ControlCharacterInLiteralCheck.class,
DeadStoreCheck.class,
DefaultPackageCheck.class,
EmptyBlockCheck.class,
Expand Down Expand Up @@ -1330,7 +1329,8 @@ public final class CheckList {
UnusedMethodParameterCheck.class,
UnusedPrivateFieldCheck.class,
UnusedPrivateMethodCheck.class,
UselessImportCheck.class);
UselessImportCheck.class,
UselessParenthesesCheck.class);

private static final List<Class<?>> ALL_CHECKS = Stream.of(JAVA_MAIN_CHECKS, JAVA_MAIN_AND_TEST_CHECKS, JAVA_TEST_CHECKS)
.flatMap(List::stream)
Expand Down

0 comments on commit 90c3ee1

Please sign in to comment.