Skip to content

Commit 9acb824

Browse files
committed
move EC ids to GCI ids
1 parent 9ed4428 commit 9acb824

13 files changed

+17
-17
lines changed

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@
6161
<mockito.version>5.14.1</mockito.version>
6262

6363
<!-- temporary version waiting for real automatic release in creedengo repository -->
64-
<ecocode-rules-specifications.version>1.6.5</ecocode-rules-specifications.version>
64+
<creedengo-rules-specifications.version>main-SNAPSHOT</creedengo-rules-specifications.version>
6565

6666
</properties>
6767

6868
<dependencies>
6969
<dependency>
70-
<groupId>io.ecocode</groupId>
71-
<artifactId>ecocode-rules-specifications</artifactId>
72-
<version>${ecocode-rules-specifications.version}</version>
70+
<groupId>org.green-code-initiative</groupId>
71+
<artifactId>creedengo-rules-specifications</artifactId>
72+
<version>${creedengo-rules-specifications.version}</version>
7373
<classifier>python</classifier>
7474
</dependency>
7575

src/main/java/org/greencodeinitiative/creedengo/python/PythonRuleRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class PythonRuleRepository implements RulesDefinition, PythonCustomRuleRe
4545

4646
public static final String LANGUAGE = "py";
4747
public static final String NAME = "creedengo";
48-
public static final String RESOURCE_BASE_PATH = "io/ecocode/rules/python";
48+
public static final String RESOURCE_BASE_PATH = "org/green-code-initiative/rules/python";
4949
public static final String REPOSITORY_KEY = "creedengo-python";
5050

5151
private final SonarRuntime sonarRuntime;

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidFullSQLRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import java.util.Map;
3333
import java.util.regex.Pattern;
3434

35-
@Rule(key = "EC74")
35+
@Rule(key = "GCI74")
3636
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC74")
3737
@DeprecatedRuleKey(repositoryKey = "gci-python", ruleKey = "S74")
3838
public class AvoidFullSQLRequest extends PythonSubscriptionCheck {

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidGettersAndSetters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import org.sonar.plugins.python.api.tree.Tree;
3434
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
3535

36-
@Rule(key = "EC7")
36+
@Rule(key = "GCI7")
3737
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC7")
3838
@DeprecatedRuleKey(repositoryKey = "gci-python", ruleKey = "D7")
3939
public class AvoidGettersAndSetters extends PythonSubscriptionCheck {

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidGlobalVariableInFunctionCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
import org.sonar.plugins.python.api.tree.YieldStatement;
7979
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
8080

81-
@Rule(key = "EC4")
81+
@Rule(key = "GCI4")
8282
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC4")
8383
@DeprecatedRuleKey(repositoryKey = "gci-python", ruleKey = "D4")
8484
public class AvoidGlobalVariableInFunctionCheck extends PythonSubscriptionCheck {

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidListComprehensionInIterations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import static org.sonar.plugins.python.api.tree.Tree.Kind.LIST_COMPREHENSION;
3636
import static org.sonar.plugins.python.api.tree.Tree.Kind.REGULAR_ARGUMENT;
3737

38-
@Rule(key = "EC404")
38+
@Rule(key = "GCI404")
3939
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC404")
4040
public class AvoidListComprehensionInIterations extends PythonSubscriptionCheck {
4141

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidMultipleIfElseStatementCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* - an "ELSE" statement is considered as a second IF statement using the same variables used on previous
4545
* - IF and ELSEIF statements are considered as an IF statement
4646
*/
47-
@Rule(key = "EC2")
47+
@Rule(key = "GCI2")
4848
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC2")
4949
public class AvoidMultipleIfElseStatementCheck extends PythonSubscriptionCheck {
5050

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidSQLRequestInLoop.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import org.sonar.plugins.python.api.tree.Tree;
3737
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
3838

39-
@Rule(key = "EC72")
39+
@Rule(key = "GCI72")
4040
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC72")
4141
@DeprecatedRuleKey(repositoryKey = "gci-python", ruleKey = "S72")
4242
public class AvoidSQLRequestInLoop extends PythonSubscriptionCheck {

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidTryCatchWithFileOpenedCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import static org.sonar.plugins.python.api.tree.Tree.Kind.CALL_EXPR;
2828

29-
@Rule(key = "EC35")
29+
@Rule(key = "GCI35")
3030
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC35")
3131
@DeprecatedRuleKey(repositoryKey = "gci-python", ruleKey = "S34")
3232
public class AvoidTryCatchWithFileOpenedCheck extends PythonSubscriptionCheck {

src/main/java/org/greencodeinitiative/creedengo/python/checks/AvoidUnlimitedCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.sonar.plugins.python.api.tree.Tree;
2929
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
3030

31-
@Rule(key = "EC89")
31+
@Rule(key = "GCI89")
3232
@DeprecatedRuleKey(repositoryKey = "ecocode-python", ruleKey = "EC89")
3333
public class AvoidUnlimitedCache extends PythonSubscriptionCheck {
3434

0 commit comments

Comments
 (0)