Skip to content

Commit 5c6e519

Browse files
committed
Update N+1 problem detection rule key and adjust related configurations
1 parent e9f2407 commit 5c6e519

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<google.re2j>1.8</google.re2j>
7979

8080
<!-- Version of creedengo rules specifications implemented by this plugin -->
81-
<creedengo-rules-specifications.version>2.2.2</creedengo-rules-specifications.version>
81+
<creedengo-rules-specifications.version>main-snapshot</creedengo-rules-specifications.version>
8282

8383
<!-- URL of the Maven repository where sonarqube will be downloaded -->
8484
<test-it.orchestrator.artifactory.url>https://repo1.maven.org/maven2</test-it.orchestrator.artifactory.url>

src/main/java/org/greencodeinitiative/creedengo/java/checks/AvoidNPlusOneProblemInJPAEntitiesCheck.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
import java.util.*;
1212

13-
@Rule(key = "GRC3")
14-
@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "GRC3")
15-
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRC3")
13+
@Rule(key = "GCI604")
14+
@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "GCI604")
15+
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GCI604")
1616
public class AvoidNPlusOneProblemInJPAEntitiesCheck extends IssuableSubscriptionVisitor {
1717

1818
protected static final String RULE_MESSAGE = " Evitez le N+1 : utilisez un fetch join ou une récupération eager. ";

src/main/resources/org/greencodeinitiative/creedengo/java/creedengo_way_profile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"GCI79",
2020
"GCI82",
2121
"GCI94",
22-
"GRC3"
22+
"GCI604"
2323
]
2424
}

0 commit comments

Comments
 (0)