From 7d6784219b6ae8d0e6d70d4857fd01efb5a0d6df Mon Sep 17 00:00:00 2001
From: Vincent Marmin <3215889+vincent314@users.noreply.github.com>
Date: Fri, 6 Dec 2024 16:12:17 +0100
Subject: [PATCH 1/5] chore: rename rule keys ECXXX to the Green Code
Initiative naming convention GCIXXX
---
CHANGELOG.md | 1 +
pom.xml | 10 +++----
.../LaunchSonarqubeAndBuildProjectIT.java | 4 +--
.../tests/profile/ProfileBackup.java | 10 +++----
.../java/JavaRulesDefinition.java | 2 +-
.../java/checks/ArrayCopyCheck.java | 2 +-
.../java/checks/AvoidFullSQLRequest.java | 2 +-
.../AvoidGettingSizeCollectionInLoop.java | 2 +-
.../checks/AvoidMultipleIfElseStatement.java | 2 +-
.../checks/AvoidRegexPatternNotStatic.java | 2 +-
.../java/checks/AvoidSQLRequestInLoop.java | 2 +-
.../checks/AvoidSetConstantInBatchUpdate.java | 2 +-
...ringRepositoryCallInLoopOrStreamCheck.java | 2 +-
.../checks/AvoidStatementForDMLQueries.java | 2 +-
.../checks/AvoidUsageOfStaticCollections.java | 2 +-
...FreeResourcesOfAutoCloseableInterface.java | 2 +-
.../java/checks/IncrementCheck.java | 2 +-
.../InitializeBufferWithAppropriateSize.java | 2 +-
.../NoFunctionCallWhenDeclaringForLoop.java | 2 +-
.../checks/OptimizeReadFileExceptions.java | 2 +-
.../java/ecoCode_way_profile.json | 30 +++++++++----------
.../java/JavaRulesDefinitionTest.java | 6 ++--
22 files changed, 47 insertions(+), 46 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 467e711..c6a598b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#59](https://github.com/green-code-initiative/ecoCode-java/pull/59) Add builtin profile `ecoCode way` to aggregate all implemented ecoCode rules by this plugin
- [#53](https://github.com/green-code-initiative/ecoCode-java/issues/53) Improve integration tests
+- Rename rules ECXXX to the new Green Code Initiative naming convention GCIXXX
### Changed
diff --git a/pom.xml b/pom.xml
index 9a15a96..5af212f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,8 +71,8 @@
1.7
-
- 1.6.5
+
+ main-SNAPSHOT
https://repo1.maven.org/maven2
@@ -91,9 +91,9 @@
- ${project.groupId}
- ecocode-rules-specifications
- ${ecocode-rules-specifications.version}
+ org.green-code-initiative
+ creedengo-rules-specifications
+ ${creedengo-rules-specifications.version}
java
diff --git a/src/it/java/io/ecocode/java/integration/tests/LaunchSonarqubeAndBuildProjectIT.java b/src/it/java/io/ecocode/java/integration/tests/LaunchSonarqubeAndBuildProjectIT.java
index 279e141..aa487a4 100644
--- a/src/it/java/io/ecocode/java/integration/tests/LaunchSonarqubeAndBuildProjectIT.java
+++ b/src/it/java/io/ecocode/java/integration/tests/LaunchSonarqubeAndBuildProjectIT.java
@@ -141,7 +141,7 @@ void test() {
assertThat(issuesForArrayCopyCheck)
.hasSize(1)
.first().satisfies(issue -> {
- assertThat(issue.getRule()).isEqualTo("ecocode-java:EC69");
+ assertThat(issue.getRule()).isEqualTo("ecocode-java:GCI69");
assertThat(issue.getSeverity()).isEqualTo(MINOR);
assertThat(issue.getLine()).isEqualTo(18);
assertThat(issue.getTextRange().getStartLine()).isEqualTo(18);
@@ -445,4 +445,4 @@ private static WsClient newWsClient(Orchestrator orchestrator) {
.url(orchestrator.getServer().getUrl())
.build());
}
-}
\ No newline at end of file
+}
diff --git a/src/it/java/io/ecocode/java/integration/tests/profile/ProfileBackup.java b/src/it/java/io/ecocode/java/integration/tests/profile/ProfileBackup.java
index 4b67287..43cadad 100644
--- a/src/it/java/io/ecocode/java/integration/tests/profile/ProfileBackup.java
+++ b/src/it/java/io/ecocode/java/integration/tests/profile/ProfileBackup.java
@@ -22,8 +22,8 @@
* "name": "ecoCode way",
* "language": "java",
* "ruleKeys": [
- * "EC1",
- * "EC2"
+ * "GCI1",
+ * "GCI2"
* ]
* }
*
@@ -36,14 +36,14 @@
* <rules>
* <rule>
* <repositoryKey>ecocode-java</repositoryKey>
- * <key>EC1</key>
+ * <key>GCI1</key>
* <type>CODE_SMELL</type>
* <priority>MINOR</priority>
* <parameters />
* </rule>
* <rule>
* <repositoryKey>ecocode-java</repositoryKey>
- * <key>EC2</key>
+ * <key>GCI2</key>
* <type>CODE_SMELL</type>
* <priority>MINOR</priority>
* <parameters />
@@ -160,4 +160,4 @@ public String language() {
public String name() {
return profileMetadata().getName();
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/fr/greencodeinitiative/java/JavaRulesDefinition.java b/src/main/java/fr/greencodeinitiative/java/JavaRulesDefinition.java
index f9e03e3..f71aa81 100644
--- a/src/main/java/fr/greencodeinitiative/java/JavaRulesDefinition.java
+++ b/src/main/java/fr/greencodeinitiative/java/JavaRulesDefinition.java
@@ -28,7 +28,7 @@
* That allows to list the rules in the page "Rules".
*/
public class JavaRulesDefinition implements RulesDefinition {
- private static final String RESOURCE_BASE_PATH = "io/ecocode/rules/java";
+ private static final String RESOURCE_BASE_PATH = "org/green-code-initiative/rules/java";
private static final String NAME = "ecoCode";
static final String LANGUAGE = "java";
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java b/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
index b594af9..c4f642e 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
@@ -53,7 +53,7 @@
* @author Aubay
* @formatter:off
*/
-@Rule(key = "EC27")
+@Rule(key = "GCI27")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRPS0027")
public class ArrayCopyCheck extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequest.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
index 88ff715..5b9c9dd 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
@@ -31,7 +31,7 @@
import org.sonar.plugins.java.api.tree.Tree.Kind;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC74")
+@Rule(key = "GCI74")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S74")
public class AvoidFullSQLRequest extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
index c81d795..9e8c247 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
@@ -34,7 +34,7 @@
import org.sonar.plugins.java.api.tree.WhileStatementTree;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC3")
+@Rule(key = "GCI3")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GSCIL")
public class AvoidGettingSizeCollectionInLoop extends IssuableSubscriptionVisitor {
protected static final String MESSAGERULE = "Avoid getting the size of the collection in the loop";
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
index 4dc77ba..c16c9b7 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
@@ -43,7 +43,7 @@
* - an "ELSE" statement is considered as a second IF statement using the same variables used on previous
* - IF and ELSEIF statements are considered as an IF statement
*/
-@Rule(key = "EC2")
+@Rule(key = "GCI2")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "AMIES")
public class AvoidMultipleIfElseStatement extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
index 2561a6c..3384e1d 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
@@ -32,7 +32,7 @@
import org.sonar.plugins.java.api.tree.Tree;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC77")
+@Rule(key = "GCI77")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S77")
public class AvoidRegexPatternNotStatic extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
index 1e3aab8..99ddd55 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
@@ -30,7 +30,7 @@
import org.sonar.plugins.java.api.tree.Tree.Kind;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC72")
+@Rule(key = "GCI72")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S72")
public class AvoidSQLRequestInLoop extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
index 4fe31ab..0ad96d1 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
@@ -39,7 +39,7 @@
import static org.sonar.plugins.java.api.tree.Tree.Kind.MEMBER_SELECT;
import static org.sonar.plugins.java.api.tree.Tree.Kind.METHOD_INVOCATION;
-@Rule(key = "EC78")
+@Rule(key = "GCI78")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S78")
public class AvoidSetConstantInBatchUpdate extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
index 3222799..bf0e408 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
@@ -26,7 +26,7 @@
import org.sonar.plugins.java.api.tree.*;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC1")
+@Rule(key = "GCI1")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRC1")
public class AvoidSpringRepositoryCallInLoopOrStreamCheck extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
index 592f92c..99b5209 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
@@ -31,7 +31,7 @@
import org.sonar.plugins.java.api.tree.Tree;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC5")
+@Rule(key = "GCI5")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "SDMLQ1")
public class AvoidStatementForDMLQueries extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java b/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
index 18a7fb7..544899e 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
@@ -30,7 +30,7 @@
import org.sonar.plugins.java.api.tree.VariableTree;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC76")
+@Rule(key = "GCI76")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S76")
public class AvoidUsageOfStaticCollections extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java b/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
index 47cbc2e..a751542 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
@@ -35,7 +35,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC79")
+@Rule(key = "GCI79")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S79")
public class FreeResourcesOfAutoCloseableInterface extends IssuableSubscriptionVisitor {
private final Deque withinTry = new LinkedList<>();
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java b/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
index 00c3094..9b73a1d 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
@@ -26,7 +26,7 @@
import org.sonar.plugins.java.api.tree.Tree.Kind;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC67")
+@Rule(key = "GCI67")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S67")
public class IncrementCheck extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java b/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
index 44caa87..d86f53d 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
@@ -27,7 +27,7 @@
import org.sonar.plugins.java.api.tree.Tree.Kind;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC32")
+@Rule(key = "GCI32")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRSP0032")
public class InitializeBufferWithAppropriateSize extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java b/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
index d4088bd..461cac3 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
@@ -37,7 +37,7 @@
import org.sonar.plugins.java.api.tree.Tree;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC69")
+@Rule(key = "GCI69")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S69")
public class NoFunctionCallWhenDeclaringForLoop extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java b/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
index 2362404..7a7fdda 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
+++ b/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
@@ -32,7 +32,7 @@
import org.sonar.plugins.java.api.tree.TryStatementTree;
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
-@Rule(key = "EC28")
+@Rule(key = "GCI28")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRSP0028")
public class OptimizeReadFileExceptions extends IssuableSubscriptionVisitor {
diff --git a/src/main/resources/fr/greencodeinitiative/java/ecoCode_way_profile.json b/src/main/resources/fr/greencodeinitiative/java/ecoCode_way_profile.json
index 88e381a..9bb5d9e 100644
--- a/src/main/resources/fr/greencodeinitiative/java/ecoCode_way_profile.json
+++ b/src/main/resources/fr/greencodeinitiative/java/ecoCode_way_profile.json
@@ -2,20 +2,20 @@
"name": "ecoCode way",
"language": "java",
"ruleKeys": [
- "EC1",
- "EC2",
- "EC3",
- "EC5",
- "EC27",
- "EC28",
- "EC32",
- "EC67",
- "EC69",
- "EC72",
- "EC74",
- "EC76",
- "EC77",
- "EC78",
- "EC79"
+ "GCI1",
+ "GCI2",
+ "GCI3",
+ "GCI5",
+ "GCI27",
+ "GCI28",
+ "GCI32",
+ "GCI67",
+ "GCI69",
+ "GCI72",
+ "GCI74",
+ "GCI76",
+ "GCI77",
+ "GCI78",
+ "GCI79"
]
}
diff --git a/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java b/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java
index ee6dff5..3db32ec 100644
--- a/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java
+++ b/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java
@@ -61,18 +61,18 @@ void testRegistredRules() {
}
@Test
- @DisplayName("All rule keys must be prefixed by 'EC'")
+ @DisplayName("All rule keys must be prefixed by 'GCI'")
void testRuleKeyPrefix() {
SoftAssertions assertions = new SoftAssertions();
repository.rules().forEach(
- rule -> assertions.assertThat(rule.key()).startsWith("EC")
+ rule -> assertions.assertThat(rule.key()).startsWith("GCI")
);
assertions.assertAll();
}
@Test
void assertRuleProperties() {
- Rule rule = repository.rule("EC67");
+ Rule rule = repository.rule("GCI67");
assertThat(rule).isNotNull();
assertThat(rule.name()).isEqualTo("Use ++i instead of i++");
assertThat(rule.debtRemediationFunction().type()).isEqualTo(Type.CONSTANT_ISSUE);
From a0dbaea430727b60abb79b174110d5a0baeaf381 Mon Sep 17 00:00:00 2001
From: Vincent Marmin <3215889+vincent314@users.noreply.github.com>
Date: Fri, 6 Dec 2024 16:44:44 +0100
Subject: [PATCH 2/5] chore: move packages fr.green-code-initiative to
org.green-code-initiative
---
pom.xml | 4 +--
.../java/checks/ArrayCopyCheck.java | 4 +--
.../java/checks/AvoidFullSQLRequestCheck.java | 4 +--
...ingSizeCollectionInForEachLoopIgnored.java | 4 +--
...voidGettingSizeCollectionInForLoopBad.java | 4 +--
...oidGettingSizeCollectionInForLoopGood.java | 4 +--
...GettingSizeCollectionInForLoopIgnored.java | 4 +--
...idGettingSizeCollectionInWhileLoopBad.java | 4 +--
...dGettingSizeCollectionInWhileLoopGood.java | 4 +--
...ttingSizeCollectionInWhileLoopIgnored.java | 4 +--
.../checks/AvoidMultipleIfElseStatement.java | 2 +-
...leIfElseStatementCompareMethodNoIssue.java | 2 +-
...ltipleIfElseStatementInterfaceNoIssue.java | 2 +-
...MultipleIfElseStatementNoBlockNoIssue.java | 2 +-
.../AvoidMultipleIfElseStatementNoIssue.java | 2 +-
.../checks/AvoidRegexPatternNotStatic.java | 2 +-
.../checks/AvoidSQLRequestInLoopCheck.java | 4 +--
.../AvoidSetConstantInBatchUpdateCheck.java | 4 +--
.../AvoidSpringRepositoryCallInLoopCheck.java | 4 +--
...voidSpringRepositoryCallInStreamCheck.java | 4 +--
.../checks/AvoidStatementForDMLQueries.java | 4 +--
.../checks/AvoidUsageOfStaticCollections.java | 2 +-
...FreeResourcesOfAutoCloseableInterface.java | 4 +--
.../checks/GoodUsageOfStaticCollections.java | 2 +-
.../checks/GoodWayConcatenateStringsLoop.java | 2 +-
.../java/checks/IncrementCheck.java | 4 +--
.../InitializeBufferWithAppropriateSize.java | 4 +--
.../NoFunctionCallWhenDeclaringForLoop.java | 4 +--
.../OptimizeReadFileExceptionCheck.java | 4 +--
.../OptimizeReadFileExceptionCheck2.java | 4 +--
.../OptimizeReadFileExceptionCheck3.java | 4 +--
.../OptimizeReadFileExceptionCheck4.java | 4 +--
.../OptimizeReadFileExceptionCheck5.java | 4 +--
.../checks/OptimizeSQLQueriesWithLimit.java | 4 +--
.../java/checks/ValidRegexPattern.java | 2 +-
.../java/checks/ValidRegexPattern2.java | 2 +-
.../java/checks/ValidRegexPattern3.java | 2 +-
.../java/JavaCheckRegistrar.java | 32 +++++++++----------
.../java/JavaEcoCodeWayProfile.java | 6 ++--
.../greencodeinitiative/java/JavaPlugin.java | 2 +-
.../java/JavaRulesDefinition.java | 2 +-
.../java/checks/ArrayCopyCheck.java | 2 +-
.../java/checks/AvoidFullSQLRequest.java | 2 +-
.../AvoidGettingSizeCollectionInLoop.java | 2 +-
.../checks/AvoidMultipleIfElseStatement.java | 2 +-
.../checks/AvoidRegexPatternNotStatic.java | 2 +-
.../java/checks/AvoidSQLRequestInLoop.java | 2 +-
.../checks/AvoidSetConstantInBatchUpdate.java | 6 ++--
...ringRepositoryCallInLoopOrStreamCheck.java | 2 +-
.../checks/AvoidStatementForDMLQueries.java | 2 +-
.../checks/AvoidUsageOfStaticCollections.java | 2 +-
...FreeResourcesOfAutoCloseableInterface.java | 2 +-
.../java/checks/IncrementCheck.java | 2 +-
.../InitializeBufferWithAppropriateSize.java | 2 +-
.../NoFunctionCallWhenDeclaringForLoop.java | 2 +-
.../checks/OptimizeReadFileExceptions.java | 2 +-
.../checks/enums/ConstOrLiteralDeclare.java | 4 +--
.../java/utils/PrinterVisitor.java | 2 +-
.../java/utils/StringUtils.java | 2 +-
.../java/ecoCode_way_profile.json | 0
src/test/files/AvoidFullSQLRequestCheck.java | 4 +--
...ingSizeCollectionInForEachLoopIgnored.java | 4 +--
...voidGettingSizeCollectionInForLoopBad.java | 4 +--
...oidGettingSizeCollectionInForLoopGood.java | 4 +--
...GettingSizeCollectionInForLoopIgnored.java | 4 +--
...idGettingSizeCollectionInWhileLoopBad.java | 4 +--
...dGettingSizeCollectionInWhileLoopGood.java | 4 +--
...ttingSizeCollectionInWhileLoopIgnored.java | 4 +--
.../files/AvoidMultipleIfElseStatement.java | 2 +-
...dMultipleIfElseStatementCompareMethod.java | 4 +--
...AvoidMultipleIfElseStatementInterface.java | 2 +-
.../AvoidMultipleIfElseStatementNoIssue.java | 2 +-
.../AvoidMultipleIfElseStatementNotBlock.java | 4 +--
.../files/AvoidRegexPatternNotStatic.java | 2 +-
.../files/AvoidSQLRequestInLoopCheck.java | 4 +--
.../AvoidSetConstantInBatchUpdateCheck.java | 4 +--
.../AvoidSpringRepositoryCallInLoopCheck.java | 4 +--
...voidSpringRepositoryCallInStreamCheck.java | 4 +--
.../files/AvoidStatementForDMLQueries.java | 4 +--
.../files/AvoidUsageOfStaticCollections.java | 2 +-
...FreeResourcesOfAutoCloseableInterface.java | 6 ++--
.../files/GoodUsageOfStaticCollections.java | 2 +-
.../files/GoodWayConcatenateStringsLoop.java | 2 +-
.../InitializeBufferWithAppropriateSize.java | 4 +--
.../files/OptimizeReadFileExceptionCheck.java | 4 +--
.../OptimizeReadFileExceptionCheck2.java | 4 +--
.../OptimizeReadFileExceptionCheck3.java | 4 +--
.../OptimizeReadFileExceptionCheck4.java | 4 +--
.../OptimizeReadFileExceptionCheck5.java | 4 +--
src/test/files/ValidRegexPattern.java | 2 +-
src/test/files/ValidRegexPattern2.java | 2 +-
src/test/files/ValidRegexPattern3.java | 2 +-
.../java/JavaCheckRegistrarTest.java | 2 +-
.../java/JavaEcoCodeWayProfileTest.java | 10 +++---
.../java/JavaPluginTest.java | 2 +-
.../java/JavaRulesDefinitionTest.java | 4 +--
.../java/checks/ArrayCopyCheckTest.java | 4 +--
.../checks/AvoidFullSQLRequestCheckTest.java | 4 +--
.../AvoidGettingSizeCollectionInLoopTest.java | 2 +-
.../AvoidMultipleIfElseStatementTest.java | 2 +-
.../AvoidRegexPatternNotStaticTest.java | 2 +-
.../AvoidSQLRequestInLoopCheckTest.java | 4 +--
.../AvoidSetConstantInBatchInsertTest.java | 4 +--
...idSpringRepositoryCallInLoopCheckTest.java | 4 +--
...SpringRepositoryCallInStreamCheckTest.java | 4 +--
.../AvoidStatementForDMLQueriesTest.java | 2 +-
.../AvoidUsageOfStaticCollectionsTests.java | 2 +-
...ResourcesOfAutoCloseableInterfaceTest.java | 4 +--
.../java/checks/IncrementCheckTest.java | 4 +--
...itializeBufferWithAppropriateSizeTest.java | 4 +--
...oFunctionCallWhenDeclaringForLoopTest.java | 2 +-
.../OptimizeReadFileExceptionCheckTest.java | 2 +-
.../java/utils/FilesUtils.java | 2 +-
.../java/utils/StringUtilsTest.java | 2 +-
114 files changed, 195 insertions(+), 195 deletions(-)
rename src/main/java/{fr => org}/greencodeinitiative/java/JavaCheckRegistrar.java (72%)
rename src/main/java/{fr => org}/greencodeinitiative/java/JavaEcoCodeWayProfile.java (89%)
rename src/main/java/{fr => org}/greencodeinitiative/java/JavaPlugin.java (97%)
rename src/main/java/{fr => org}/greencodeinitiative/java/JavaRulesDefinition.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/ArrayCopyCheck.java (99%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidFullSQLRequest.java (97%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java (99%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java (99%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java (94%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java (99%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/IncrementCheck.java (97%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java (97%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java (99%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java (99%)
rename src/main/java/{fr => org}/greencodeinitiative/java/utils/PrinterVisitor.java (98%)
rename src/main/java/{fr => org}/greencodeinitiative/java/utils/StringUtils.java (96%)
rename src/main/resources/{fr => org}/greencodeinitiative/java/ecoCode_way_profile.json (100%)
rename src/test/java/{fr => org}/greencodeinitiative/java/JavaCheckRegistrarTest.java (97%)
rename src/test/java/{fr => org}/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java (84%)
rename src/test/java/{fr => org}/greencodeinitiative/java/JavaPluginTest.java (97%)
rename src/test/java/{fr => org}/greencodeinitiative/java/JavaRulesDefinitionTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/ArrayCopyCheckTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java (98%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java (98%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java (97%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java (92%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java (93%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java (97%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java (97%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/IncrementCheckTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java (96%)
rename src/test/java/{fr => org}/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java (97%)
rename src/test/java/{fr => org}/greencodeinitiative/java/utils/FilesUtils.java (98%)
rename src/test/java/{fr => org}/greencodeinitiative/java/utils/StringUtilsTest.java (97%)
diff --git a/pom.xml b/pom.xml
index 5af212f..eda274b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -238,7 +238,7 @@
true
ecocodejava
- fr.greencodeinitiative.java.JavaPlugin
+ org.greencodeinitiative.java.JavaPlugin
true
${sonarqube.version}
true
@@ -470,7 +470,7 @@
- ${project.baseUri}/src/main/resources/fr/greencodeinitiative/java/ecoCode_way_profile.json,
+ ${project.baseUri}/src/main/resources/org/greencodeinitiative/java/ecoCode_way_profile.json,
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
index adee2b5..8519715 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
@@ -490,4 +490,4 @@ private boolean transform(boolean a) {
return !a;
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequestCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequestCheck.java
index 45c277e..5fbcf14 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequestCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequestCheck.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidFullSQLRequestCheck {
AvoidFullSQLRequestCheck(AvoidFullSQLRequestCheck mc) {
@@ -27,4 +27,4 @@ private void dummyCall(String request) {
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForEachLoopIgnored.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForEachLoopIgnored.java
index 467899d..fbec63c 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForEachLoopIgnored.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForEachLoopIgnored.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.List;
@@ -18,4 +18,4 @@ public void ignoredLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopBad.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopBad.java
index f990526..782ffbe 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopBad.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopBad.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.List;
@@ -17,4 +17,4 @@ public void badForLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopGood.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopGood.java
index fed87f5..20bfd37 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopGood.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopGood.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -20,4 +20,4 @@ public void goodForLoop() {
int size2 = numberList.size(); // Compliant with this rule
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopIgnored.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopIgnored.java
index d9c4d51..e12525b 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopIgnored.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInForLoopIgnored.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.Iterator;
@@ -20,4 +20,4 @@ public void badForLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopBad.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopBad.java
index 9b6fae7..858db7b 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopBad.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopBad.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.List;
@@ -19,4 +19,4 @@ public void badWhileLoop() {
i++;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopGood.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopGood.java
index b88e73a..774589c 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopGood.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopGood.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.List;
@@ -21,4 +21,4 @@ public void goodWhileLoop() {
i++;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopIgnored.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopIgnored.java
index 62ed1fc..60f82d7 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopIgnored.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInWhileLoopIgnored.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.Iterator;
@@ -21,4 +21,4 @@ public void badWhileLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
index 329342a..2127b16 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatement {
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementCompareMethodNoIssue.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementCompareMethodNoIssue.java
index 573cdc9..c2c6068 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementCompareMethodNoIssue.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementCompareMethodNoIssue.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatementCompareMethodNoIssue {
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java
index 1409a4e..37d87eb 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
interface AvoidMultipleIfElseStatementInterfaceNoIssue {
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java
index d66bfed..b120cee 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatementNoBlockNoIssue {
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoIssue.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoIssue.java
index f4260da..2c4a87d 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoIssue.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoIssue.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatementNoIssue {
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
index 0474e45..6ca37ed 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheck.java
index 4981d0b..b0a7929 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheck.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.sql.Connection;
import java.sql.DriverManager;
@@ -131,4 +131,4 @@ public void testWithWhileLoop() {
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdateCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdateCheck.java
index 41bb443..57f9b04 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdateCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdateCheck.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.math.BigDecimal;
import java.sql.Connection;
@@ -148,4 +148,4 @@ public double getField4() {
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java
index ee93298..bc6c276 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
@@ -54,4 +54,4 @@ public interface EmployeeRepository extends JpaRepository {
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java
index 38fa010..746b77b 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
@@ -122,4 +122,4 @@ public Employee(Integer id, String name) {
public interface EmployeeRepository extends JpaRepository {
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
index 87204a6..94bd2d8 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.sql.Connection;
import java.sql.DriverManager;
@@ -17,4 +17,4 @@ public void insert() throws SQLException {
Statement statement = connection.createStatement();
statement.executeUpdate("INSERT INTO persons(id, name) VALUES(2, 'Toto')"); // Noncompliant {{You must not use Statement for a DML query}}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
index ac1b9f0..85b078d 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.*;
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
index 06dc191..741b5a7 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.io.*;
@@ -35,4 +35,4 @@ public void foo2() throws IOException {
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodUsageOfStaticCollections.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodUsageOfStaticCollections.java
index 8f8e55c..e5006c4 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodUsageOfStaticCollections.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodUsageOfStaticCollections.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.*;
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodWayConcatenateStringsLoop.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodWayConcatenateStringsLoop.java
index 6f279ed..5545568 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodWayConcatenateStringsLoop.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/GoodWayConcatenateStringsLoop.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
public class GoodWayConcatenateStringsLoop {
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
index a88292b..35210be 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class IncrementCheck {
IncrementCheck(IncrementCheck mc) {
@@ -45,4 +45,4 @@ void foo51(int value) {
System.out.println(i);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
index a02cc36..2c38adc 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class InitializeBufferWithAppropriateSize {
InitializeBufferWithAppropriateSize(InitializeBufferWithAppropriateSize mc) {
@@ -23,4 +23,4 @@ public void testBuilderCompliant() {
public void testBuilderNonCompliant() {
StringBuilder stringBuilder = new StringBuilder(); // Noncompliant {{Initialize StringBuilder or StringBuffer with appropriate size}}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
index 28da0a8..41ca01e 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class NoFunctionCallWhenDeclaringForLoop {
NoFunctionCallWhenDeclaringForLoop(NoFunctionCallWhenDeclaringForLoop mc) {
@@ -55,4 +55,4 @@ public void test6() {
}
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck.java
index 6991122..1b07e9d 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
@@ -26,4 +26,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck2.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck2.java
index 9b0833d..fb7eeac 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck2.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck2.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
@@ -24,4 +24,4 @@ public void readPreferences(String filename) throws IOException {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck3.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck3.java
index 18c2344..eef2816 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck3.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck3.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.io.FileInputStream;
import java.io.IOException;
@@ -23,4 +23,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck4.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck4.java
index 3843580..b5fba91 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck4.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck4.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.io.FileInputStream;
import java.io.InputStream;
@@ -22,4 +22,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck5.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck5.java
index 7a0e84a..7343b86 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck5.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheck5.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.io.FileInputStream;
import java.io.InputStream;
@@ -22,4 +22,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeSQLQueriesWithLimit.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeSQLQueriesWithLimit.java
index c21e2a4..a00f2a9 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeSQLQueriesWithLimit.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/OptimizeSQLQueriesWithLimit.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.springframework.data.jpa.repository.Query;
@@ -29,4 +29,4 @@ private void callQuery() {
private void dummyCall(String request) {
}
-}
\ No newline at end of file
+}
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern.java
index 5ed3652..66a001b 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern2.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern2.java
index d6d9efd..d8ec075 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern2.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern2.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern3.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern3.java
index e190734..8005b5c 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern3.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/ValidRegexPattern3.java
@@ -1,4 +1,4 @@
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/main/java/fr/greencodeinitiative/java/JavaCheckRegistrar.java b/src/main/java/org/greencodeinitiative/java/JavaCheckRegistrar.java
similarity index 72%
rename from src/main/java/fr/greencodeinitiative/java/JavaCheckRegistrar.java
rename to src/main/java/org/greencodeinitiative/java/JavaCheckRegistrar.java
index 50ada18..72b63d1 100644
--- a/src/main/java/fr/greencodeinitiative/java/JavaCheckRegistrar.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaCheckRegistrar.java
@@ -15,26 +15,26 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import java.util.Collections;
import java.util.List;
-import fr.greencodeinitiative.java.checks.ArrayCopyCheck;
-import fr.greencodeinitiative.java.checks.AvoidFullSQLRequest;
-import fr.greencodeinitiative.java.checks.AvoidGettingSizeCollectionInLoop;
-import fr.greencodeinitiative.java.checks.AvoidMultipleIfElseStatement;
-import fr.greencodeinitiative.java.checks.AvoidRegexPatternNotStatic;
-import fr.greencodeinitiative.java.checks.AvoidSQLRequestInLoop;
-import fr.greencodeinitiative.java.checks.AvoidSetConstantInBatchUpdate;
-import fr.greencodeinitiative.java.checks.AvoidSpringRepositoryCallInLoopOrStreamCheck;
-import fr.greencodeinitiative.java.checks.AvoidStatementForDMLQueries;
-import fr.greencodeinitiative.java.checks.AvoidUsageOfStaticCollections;
-import fr.greencodeinitiative.java.checks.FreeResourcesOfAutoCloseableInterface;
-import fr.greencodeinitiative.java.checks.IncrementCheck;
-import fr.greencodeinitiative.java.checks.InitializeBufferWithAppropriateSize;
-import fr.greencodeinitiative.java.checks.NoFunctionCallWhenDeclaringForLoop;
-import fr.greencodeinitiative.java.checks.OptimizeReadFileExceptions;
+import org.greencodeinitiative.java.checks.ArrayCopyCheck;
+import org.greencodeinitiative.java.checks.AvoidFullSQLRequest;
+import org.greencodeinitiative.java.checks.AvoidGettingSizeCollectionInLoop;
+import org.greencodeinitiative.java.checks.AvoidMultipleIfElseStatement;
+import org.greencodeinitiative.java.checks.AvoidRegexPatternNotStatic;
+import org.greencodeinitiative.java.checks.AvoidSQLRequestInLoop;
+import org.greencodeinitiative.java.checks.AvoidSetConstantInBatchUpdate;
+import org.greencodeinitiative.java.checks.AvoidSpringRepositoryCallInLoopOrStreamCheck;
+import org.greencodeinitiative.java.checks.AvoidStatementForDMLQueries;
+import org.greencodeinitiative.java.checks.AvoidUsageOfStaticCollections;
+import org.greencodeinitiative.java.checks.FreeResourcesOfAutoCloseableInterface;
+import org.greencodeinitiative.java.checks.IncrementCheck;
+import org.greencodeinitiative.java.checks.InitializeBufferWithAppropriateSize;
+import org.greencodeinitiative.java.checks.NoFunctionCallWhenDeclaringForLoop;
+import org.greencodeinitiative.java.checks.OptimizeReadFileExceptions;
import org.sonar.plugins.java.api.CheckRegistrar;
import org.sonar.plugins.java.api.JavaCheck;
import org.sonarsource.api.sonarlint.SonarLintSide;
diff --git a/src/main/java/fr/greencodeinitiative/java/JavaEcoCodeWayProfile.java b/src/main/java/org/greencodeinitiative/java/JavaEcoCodeWayProfile.java
similarity index 89%
rename from src/main/java/fr/greencodeinitiative/java/JavaEcoCodeWayProfile.java
rename to src/main/java/org/greencodeinitiative/java/JavaEcoCodeWayProfile.java
index d24fc82..3046f8e 100644
--- a/src/main/java/fr/greencodeinitiative/java/JavaEcoCodeWayProfile.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaEcoCodeWayProfile.java
@@ -15,13 +15,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import org.sonar.api.server.profile.BuiltInQualityProfilesDefinition;
import org.sonarsource.analyzer.commons.BuiltInQualityProfileJsonLoader;
-import static fr.greencodeinitiative.java.JavaRulesDefinition.LANGUAGE;
-import static fr.greencodeinitiative.java.JavaRulesDefinition.REPOSITORY_KEY;
+import static org.greencodeinitiative.java.JavaRulesDefinition.LANGUAGE;
+import static org.greencodeinitiative.java.JavaRulesDefinition.REPOSITORY_KEY;
public final class JavaEcoCodeWayProfile implements BuiltInQualityProfilesDefinition {
static final String PROFILE_NAME = "ecoCode way";
diff --git a/src/main/java/fr/greencodeinitiative/java/JavaPlugin.java b/src/main/java/org/greencodeinitiative/java/JavaPlugin.java
similarity index 97%
rename from src/main/java/fr/greencodeinitiative/java/JavaPlugin.java
rename to src/main/java/org/greencodeinitiative/java/JavaPlugin.java
index ff070c1..fc73413 100644
--- a/src/main/java/fr/greencodeinitiative/java/JavaPlugin.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaPlugin.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import org.sonar.api.Plugin;
diff --git a/src/main/java/fr/greencodeinitiative/java/JavaRulesDefinition.java b/src/main/java/org/greencodeinitiative/java/JavaRulesDefinition.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/JavaRulesDefinition.java
rename to src/main/java/org/greencodeinitiative/java/JavaRulesDefinition.java
index f71aa81..57999df 100644
--- a/src/main/java/fr/greencodeinitiative/java/JavaRulesDefinition.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaRulesDefinition.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import java.util.ArrayList;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java b/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
similarity index 99%
rename from src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
rename to src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
index c4f642e..d2e53ac 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/ArrayCopyCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequest.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
similarity index 97%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
index 5b9c9dd..5706ae0 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.List;
import java.util.function.Predicate;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
similarity index 99%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
index 9e8c247..212f88e 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
similarity index 99%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
index c16c9b7..f39a047 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.HashMap;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
index 3384e1d..3a43007 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collections;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
index 99ddd55..af88041 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
similarity index 94%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
index 0ad96d1..dc8a4ba 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
@@ -15,14 +15,14 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.sql.PreparedStatement;
import java.util.List;
import java.util.stream.Stream;
-import fr.greencodeinitiative.java.checks.enums.ConstOrLiteralDeclare;
-import static fr.greencodeinitiative.java.checks.enums.ConstOrLiteralDeclare.isLiteral;
+import org.greencodeinitiative.java.checks.enums.ConstOrLiteralDeclare;
+import static org.greencodeinitiative.java.checks.enums.ConstOrLiteralDeclare.isLiteral;
import static java.util.Arrays.asList;
import org.sonar.check.Rule;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
similarity index 99%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
index bf0e408..f7c4099 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
index 99b5209..3d261f2 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collections;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
rename to src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
index 544899e..267c8bd 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collections;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java b/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
rename to src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
index a751542..7f24a38 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java b/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
similarity index 97%
rename from src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
rename to src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
index 9b73a1d..881a760 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/IncrementCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collections;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java b/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
similarity index 97%
rename from src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
rename to src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
index d86f53d..906ca7c 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collections;
import java.util.List;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java b/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
similarity index 99%
rename from src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
rename to src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
index 461cac3..ea34e77 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.ArrayList;
import java.util.Collection;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java b/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
rename to src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
index 7a7fdda..999f1e3 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
diff --git a/src/main/java/fr/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java b/src/main/java/org/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
similarity index 99%
rename from src/main/java/fr/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
rename to src/main/java/org/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
index db01a76..11a092b 100644
--- a/src/main/java/fr/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks.enums;
+package org.greencodeinitiative.java.checks.enums;
import java.math.BigDecimal;
import java.util.Set;
@@ -226,4 +226,4 @@ public static final boolean isLiteral(Tree arg) {
arg.is(STRING_LITERAL) ||
arg.is(CHAR_LITERAL);
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/fr/greencodeinitiative/java/utils/PrinterVisitor.java b/src/main/java/org/greencodeinitiative/java/utils/PrinterVisitor.java
similarity index 98%
rename from src/main/java/fr/greencodeinitiative/java/utils/PrinterVisitor.java
rename to src/main/java/org/greencodeinitiative/java/utils/PrinterVisitor.java
index 2b709d7..f881be7 100644
--- a/src/main/java/fr/greencodeinitiative/java/utils/PrinterVisitor.java
+++ b/src/main/java/org/greencodeinitiative/java/utils/PrinterVisitor.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.utils;
+package org.greencodeinitiative.java.utils;
import java.util.List;
import java.util.function.Consumer;
diff --git a/src/main/java/fr/greencodeinitiative/java/utils/StringUtils.java b/src/main/java/org/greencodeinitiative/java/utils/StringUtils.java
similarity index 96%
rename from src/main/java/fr/greencodeinitiative/java/utils/StringUtils.java
rename to src/main/java/org/greencodeinitiative/java/utils/StringUtils.java
index b9b81c5..c42f9b3 100644
--- a/src/main/java/fr/greencodeinitiative/java/utils/StringUtils.java
+++ b/src/main/java/org/greencodeinitiative/java/utils/StringUtils.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.utils;
+package org.greencodeinitiative.java.utils;
public final class StringUtils {
diff --git a/src/main/resources/fr/greencodeinitiative/java/ecoCode_way_profile.json b/src/main/resources/org/greencodeinitiative/java/ecoCode_way_profile.json
similarity index 100%
rename from src/main/resources/fr/greencodeinitiative/java/ecoCode_way_profile.json
rename to src/main/resources/org/greencodeinitiative/java/ecoCode_way_profile.json
diff --git a/src/test/files/AvoidFullSQLRequestCheck.java b/src/test/files/AvoidFullSQLRequestCheck.java
index b388252..d4fd807 100644
--- a/src/test/files/AvoidFullSQLRequestCheck.java
+++ b/src/test/files/AvoidFullSQLRequestCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
@@ -46,4 +46,4 @@ private void dummyCall(String request) {
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java b/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java
index 46963cd..3d0c6f6 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -36,4 +36,4 @@ public void ignoredLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java b/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java
index 3c74c86..fe49917 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -35,4 +35,4 @@ public void badForLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java b/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java
index 5f2bcd2..bd49019 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -37,4 +37,4 @@ public void goodForLoop() {
int size = numberList.size(); // Compliant with this rule
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java b/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java
index 544e08e..9b7a934 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -37,4 +37,4 @@ public void badForLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java b/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java
index f47570c..69efe46 100644
--- a/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java
+++ b/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -37,4 +37,4 @@ public void badWhileLoop() {
i++;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java b/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java
index 5766868..3674629 100644
--- a/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java
+++ b/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -39,4 +39,4 @@ public void goodWhileLoop() {
i++;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java b/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java
index 10c752f..0c185a3 100644
--- a/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java
+++ b/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Collection;
import java.util.ArrayList;
@@ -38,4 +38,4 @@ public void badWhileLoop() {
System.out.println("numberList.size()");
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidMultipleIfElseStatement.java b/src/test/files/AvoidMultipleIfElseStatement.java
index 435218f..231b9d2 100644
--- a/src/test/files/AvoidMultipleIfElseStatement.java
+++ b/src/test/files/AvoidMultipleIfElseStatement.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatementCheck {
diff --git a/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java b/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java
index 7c52751..83a2a38 100644
--- a/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java
+++ b/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatementCompareMethod {
@@ -51,4 +51,4 @@ public int compare(FieldVo o1, FieldVo o2) {
return o1.getIdBlock().compareTo(o2.getIdBlock());
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidMultipleIfElseStatementInterface.java b/src/test/files/AvoidMultipleIfElseStatementInterface.java
index 43dd875..bd0ece2 100644
--- a/src/test/files/AvoidMultipleIfElseStatementInterface.java
+++ b/src/test/files/AvoidMultipleIfElseStatementInterface.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
interface AvoidMultipleIfElseStatementCheck {
diff --git a/src/test/files/AvoidMultipleIfElseStatementNoIssue.java b/src/test/files/AvoidMultipleIfElseStatementNoIssue.java
index 32f4716..4308213 100644
--- a/src/test/files/AvoidMultipleIfElseStatementNoIssue.java
+++ b/src/test/files/AvoidMultipleIfElseStatementNoIssue.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatementCheckNoIssue {
diff --git a/src/test/files/AvoidMultipleIfElseStatementNotBlock.java b/src/test/files/AvoidMultipleIfElseStatementNotBlock.java
index 3e8f613..55eb118 100644
--- a/src/test/files/AvoidMultipleIfElseStatementNotBlock.java
+++ b/src/test/files/AvoidMultipleIfElseStatementNotBlock.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
class AvoidMultipleIfElseStatementNotBlock {
@@ -24,4 +24,4 @@ public boolean equals(Object obj) {
return true;
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidRegexPatternNotStatic.java b/src/test/files/AvoidRegexPatternNotStatic.java
index b5e19c6..aeeffc5 100644
--- a/src/test/files/AvoidRegexPatternNotStatic.java
+++ b/src/test/files/AvoidRegexPatternNotStatic.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/test/files/AvoidSQLRequestInLoopCheck.java b/src/test/files/AvoidSQLRequestInLoopCheck.java
index 753a717..81fa6cc 100644
--- a/src/test/files/AvoidSQLRequestInLoopCheck.java
+++ b/src/test/files/AvoidSQLRequestInLoopCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.sql.Connection;
import java.sql.DriverManager;
@@ -148,4 +148,4 @@ public void testWithWhileLoop() {
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidSetConstantInBatchUpdateCheck.java b/src/test/files/AvoidSetConstantInBatchUpdateCheck.java
index 03f5e86..b30220c 100644
--- a/src/test/files/AvoidSetConstantInBatchUpdateCheck.java
+++ b/src/test/files/AvoidSetConstantInBatchUpdateCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
@@ -164,4 +164,4 @@ public double getField4() {
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java b/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java
index a18b484..a3f7f9a 100644
--- a/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java
+++ b/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
@@ -54,4 +54,4 @@ public interface EmployeeRepository extends JpaRepository {
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java b/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java
index 35dc70c..6a291a0 100644
--- a/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java
+++ b/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
@@ -136,4 +136,4 @@ public Employee(Integer id, String name) {
public interface EmployeeRepository extends JpaRepository {
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidStatementForDMLQueries.java b/src/test/files/AvoidStatementForDMLQueries.java
index 5059b09..230d920 100644
--- a/src/test/files/AvoidStatementForDMLQueries.java
+++ b/src/test/files/AvoidStatementForDMLQueries.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.sql.Connection;
import java.sql.DriverManager;
@@ -31,4 +31,4 @@ public void insert() {
Statement statement = connection.createStatement();
statement.executeUpdate("INSERT INTO persons(id, name) VALUES(2, 'Toto')"); // Noncompliant {{You must not use Statement for a DML query}}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidUsageOfStaticCollections.java b/src/test/files/AvoidUsageOfStaticCollections.java
index 3530997..2481c73 100644
--- a/src/test/files/AvoidUsageOfStaticCollections.java
+++ b/src/test/files/AvoidUsageOfStaticCollections.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.*;
diff --git a/src/test/files/FreeResourcesOfAutoCloseableInterface.java b/src/test/files/FreeResourcesOfAutoCloseableInterface.java
index e1eaab5..52365b6 100644
--- a/src/test/files/FreeResourcesOfAutoCloseableInterface.java
+++ b/src/test/files/FreeResourcesOfAutoCloseableInterface.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.io.*;
@@ -43,11 +43,11 @@ public void foo2() {
System.err.println(e.getMessage());
} finally {
if (fr) {
- fr.close();
+ org.close();
}
if (br) {
br.close();
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/GoodUsageOfStaticCollections.java b/src/test/files/GoodUsageOfStaticCollections.java
index 6d2d3c2..74641bb 100644
--- a/src/test/files/GoodUsageOfStaticCollections.java
+++ b/src/test/files/GoodUsageOfStaticCollections.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.*;
diff --git a/src/test/files/GoodWayConcatenateStringsLoop.java b/src/test/files/GoodWayConcatenateStringsLoop.java
index c11c1ab..978b2fc 100644
--- a/src/test/files/GoodWayConcatenateStringsLoop.java
+++ b/src/test/files/GoodWayConcatenateStringsLoop.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.utils;
+package org.greencodeinitiative.java.utils;
public class GoodWayConcatenateStringsLoop {
diff --git a/src/test/files/InitializeBufferWithAppropriateSize.java b/src/test/files/InitializeBufferWithAppropriateSize.java
index b5852a1..3dc5934 100644
--- a/src/test/files/InitializeBufferWithAppropriateSize.java
+++ b/src/test/files/InitializeBufferWithAppropriateSize.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.sql.Connection;
import java.sql.DriverManager;
@@ -45,4 +45,4 @@ public void testBuilderCompliant() {
public void testBuilderNonCompliant() {
StringBuilder stringBuilder = new StringBuilder(); // Noncompliant {{Initialize StringBuilder or StringBuffer with appropriate size}}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/OptimizeReadFileExceptionCheck.java b/src/test/files/OptimizeReadFileExceptionCheck.java
index e9fd260..cbe6156 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
@@ -34,4 +34,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/OptimizeReadFileExceptionCheck2.java b/src/test/files/OptimizeReadFileExceptionCheck2.java
index 689dc18..8345a7f 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck2.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck2.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
@@ -33,4 +33,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/OptimizeReadFileExceptionCheck3.java b/src/test/files/OptimizeReadFileExceptionCheck3.java
index 92dc150..6a942ac 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck3.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck3.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
@@ -33,4 +33,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/OptimizeReadFileExceptionCheck4.java b/src/test/files/OptimizeReadFileExceptionCheck4.java
index 5914e0f..fd04144 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck4.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck4.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
@@ -33,4 +33,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/OptimizeReadFileExceptionCheck5.java b/src/test/files/OptimizeReadFileExceptionCheck5.java
index 6d8b553..cb07f73 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck5.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck5.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.Arrays;
import java.util.List;
@@ -33,4 +33,4 @@ public void readPreferences(String filename) {
}
//...
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/ValidRegexPattern.java b/src/test/files/ValidRegexPattern.java
index aacb701..1f0873c 100644
--- a/src/test/files/ValidRegexPattern.java
+++ b/src/test/files/ValidRegexPattern.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/test/files/ValidRegexPattern2.java b/src/test/files/ValidRegexPattern2.java
index a674b9b..97760e1 100644
--- a/src/test/files/ValidRegexPattern2.java
+++ b/src/test/files/ValidRegexPattern2.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/test/files/ValidRegexPattern3.java b/src/test/files/ValidRegexPattern3.java
index 0867693..70d8369 100644
--- a/src/test/files/ValidRegexPattern3.java
+++ b/src/test/files/ValidRegexPattern3.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import java.util.regex.Pattern;
diff --git a/src/test/java/fr/greencodeinitiative/java/JavaCheckRegistrarTest.java b/src/test/java/org/greencodeinitiative/java/JavaCheckRegistrarTest.java
similarity index 97%
rename from src/test/java/fr/greencodeinitiative/java/JavaCheckRegistrarTest.java
rename to src/test/java/org/greencodeinitiative/java/JavaCheckRegistrarTest.java
index 09655b6..0401dec 100644
--- a/src/test/java/fr/greencodeinitiative/java/JavaCheckRegistrarTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaCheckRegistrarTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import java.util.Set;
diff --git a/src/test/java/fr/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java b/src/test/java/org/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
similarity index 84%
rename from src/test/java/fr/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
rename to src/test/java/org/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
index 0d75016..9f161ed 100644
--- a/src/test/java/fr/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import java.util.List;
import java.util.stream.Collectors;
@@ -24,10 +24,10 @@
import org.sonar.api.server.profile.BuiltInQualityProfilesDefinition;
import org.sonar.check.Rule;
-import static fr.greencodeinitiative.java.JavaCheckRegistrarTest.getDefinedRules;
-import static fr.greencodeinitiative.java.JavaEcoCodeWayProfile.PROFILE_NAME;
-import static fr.greencodeinitiative.java.JavaEcoCodeWayProfile.PROFILE_PATH;
-import static fr.greencodeinitiative.java.JavaRulesDefinition.LANGUAGE;
+import static org.greencodeinitiative.java.JavaCheckRegistrarTest.getDefinedRules;
+import static org.greencodeinitiative.java.JavaEcoCodeWayProfile.PROFILE_NAME;
+import static org.greencodeinitiative.java.JavaEcoCodeWayProfile.PROFILE_PATH;
+import static org.greencodeinitiative.java.JavaRulesDefinition.LANGUAGE;
import static org.assertj.core.api.Assertions.assertThat;
class JavaEcoCodeWayProfileTest {
diff --git a/src/test/java/fr/greencodeinitiative/java/JavaPluginTest.java b/src/test/java/org/greencodeinitiative/java/JavaPluginTest.java
similarity index 97%
rename from src/test/java/fr/greencodeinitiative/java/JavaPluginTest.java
rename to src/test/java/org/greencodeinitiative/java/JavaPluginTest.java
index 0f2167d..9c35fdc 100644
--- a/src/test/java/fr/greencodeinitiative/java/JavaPluginTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaPluginTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java b/src/test/java/org/greencodeinitiative/java/JavaRulesDefinitionTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java
rename to src/test/java/org/greencodeinitiative/java/JavaRulesDefinitionTest.java
index 3db32ec..b2d4091 100644
--- a/src/test/java/fr/greencodeinitiative/java/JavaRulesDefinitionTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaRulesDefinitionTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java;
+package org.greencodeinitiative.java;
import org.assertj.core.api.SoftAssertions;
import org.junit.jupiter.api.BeforeEach;
@@ -28,7 +28,7 @@
import org.sonar.api.server.rule.RulesDefinition.Rule;
import org.sonar.api.utils.Version;
-import static fr.greencodeinitiative.java.JavaCheckRegistrar.ANNOTATED_RULE_CLASSES;
+import static org.greencodeinitiative.java.JavaCheckRegistrar.ANNOTATED_RULE_CLASSES;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/ArrayCopyCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
index 5f0b127..9a73afa 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
@@ -33,4 +33,4 @@ void test() {
.verifyIssues();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
index 25ead7c..8ed3003 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
@@ -30,4 +30,4 @@ void test() {
.verifyIssues();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
similarity index 98%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
index c957692..fda429f 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
similarity index 98%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
index 2cf8869..7f0d11f 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
similarity index 97%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
index 1750232..a01be0b 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
index 5abed41..7bc0dc7 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
@@ -30,4 +30,4 @@ void test() {
.verifyIssues();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
index 8c138fd..c9b300f 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
@@ -30,4 +30,4 @@ void test() {
.verifyIssues();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
similarity index 92%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
index 2a855e0..ff5bdc7 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
@@ -15,9 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
-import fr.greencodeinitiative.java.utils.FilesUtils;
+import org.greencodeinitiative.java.utils.FilesUtils;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
similarity index 93%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
index e9fd4f3..1df0cad 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
@@ -15,9 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
-import fr.greencodeinitiative.java.utils.FilesUtils;
+import org.greencodeinitiative.java.utils.FilesUtils;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
index b74683e..d247444 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
similarity index 97%
rename from src/test/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
rename to src/test/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
index 2ac4ed3..4067128 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java b/src/test/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
similarity index 97%
rename from src/test/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
index 9a9ca49..1fe62d2 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
@@ -38,4 +38,4 @@ void test_no_java_version() {
.withCheck(new FreeResourcesOfAutoCloseableInterface())
.verifyIssues();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/IncrementCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/IncrementCheckTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/IncrementCheckTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/IncrementCheckTest.java
index e9d5b98..7463017 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/IncrementCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/IncrementCheckTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
@@ -30,4 +30,4 @@ void test() {
.verifyIssues();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java b/src/test/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
index deef83e..5ff8ac9 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
@@ -30,4 +30,4 @@ void test() {
.verifyIssues();
}
-}
\ No newline at end of file
+}
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java b/src/test/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
similarity index 96%
rename from src/test/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
index ef3c983..29b4db4 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
similarity index 97%
rename from src/test/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
rename to src/test/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
index b3ef8c8..5ddb725 100644
--- a/src/test/java/fr/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.checks;
+package org.greencodeinitiative.java.checks;
import org.junit.jupiter.api.Test;
import org.sonar.java.checks.verifier.CheckVerifier;
diff --git a/src/test/java/fr/greencodeinitiative/java/utils/FilesUtils.java b/src/test/java/org/greencodeinitiative/java/utils/FilesUtils.java
similarity index 98%
rename from src/test/java/fr/greencodeinitiative/java/utils/FilesUtils.java
rename to src/test/java/org/greencodeinitiative/java/utils/FilesUtils.java
index ed06d4c..f543b33 100644
--- a/src/test/java/fr/greencodeinitiative/java/utils/FilesUtils.java
+++ b/src/test/java/org/greencodeinitiative/java/utils/FilesUtils.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.utils;
+package org.greencodeinitiative.java.utils;
import java.io.File;
import java.io.IOException;
diff --git a/src/test/java/fr/greencodeinitiative/java/utils/StringUtilsTest.java b/src/test/java/org/greencodeinitiative/java/utils/StringUtilsTest.java
similarity index 97%
rename from src/test/java/fr/greencodeinitiative/java/utils/StringUtilsTest.java
rename to src/test/java/org/greencodeinitiative/java/utils/StringUtilsTest.java
index 9e6d932..8d95da5 100644
--- a/src/test/java/fr/greencodeinitiative/java/utils/StringUtilsTest.java
+++ b/src/test/java/org/greencodeinitiative/java/utils/StringUtilsTest.java
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-package fr.greencodeinitiative.java.utils;
+package org.greencodeinitiative.java.utils;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
From d7f2ca368477574ef9a28570dffd0e7757690339 Mon Sep 17 00:00:00 2001
From: Vincent Marmin <3215889+vincent314@users.noreply.github.com>
Date: Fri, 6 Dec 2024 16:52:32 +0100
Subject: [PATCH 3/5] fix: add @Deprecated annotation for previous ECXXX rules
---
.../java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java | 1 +
.../org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java | 1 +
.../java/checks/AvoidGettingSizeCollectionInLoop.java | 1 +
.../java/checks/AvoidMultipleIfElseStatement.java | 1 +
.../java/checks/AvoidRegexPatternNotStatic.java | 1 +
.../greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java | 1 +
.../java/checks/AvoidSetConstantInBatchUpdate.java | 1 +
.../checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java | 1 +
.../java/checks/AvoidStatementForDMLQueries.java | 1 +
.../java/checks/AvoidUsageOfStaticCollections.java | 1 +
.../java/checks/FreeResourcesOfAutoCloseableInterface.java | 1 +
.../java/org/greencodeinitiative/java/checks/IncrementCheck.java | 1 +
.../java/checks/InitializeBufferWithAppropriateSize.java | 1 +
.../java/checks/NoFunctionCallWhenDeclaringForLoop.java | 1 +
.../java/checks/OptimizeReadFileExceptions.java | 1 +
15 files changed, 15 insertions(+)
diff --git a/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java b/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
index d2e53ac..e417a13 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
@@ -54,6 +54,7 @@
* @formatter:off
*/
@Rule(key = "GCI27")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC27")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRPS0027")
public class ArrayCopyCheck extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
index 5706ae0..a87f6c2 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
@@ -32,6 +32,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI74")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC74")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S74")
public class AvoidFullSQLRequest extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
index 212f88e..9aeabf5 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
@@ -35,6 +35,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI3")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC3")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GSCIL")
public class AvoidGettingSizeCollectionInLoop extends IssuableSubscriptionVisitor {
protected static final String MESSAGERULE = "Avoid getting the size of the collection in the loop";
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
index f39a047..fbc4c14 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
@@ -44,6 +44,7 @@
* - IF and ELSEIF statements are considered as an IF statement
*/
@Rule(key = "GCI2")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC2")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "AMIES")
public class AvoidMultipleIfElseStatement extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
index 3a43007..bf8dcc5 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
@@ -33,6 +33,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI77")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC77")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S77")
public class AvoidRegexPatternNotStatic extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
index af88041..2454345 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
@@ -31,6 +31,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI72")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC72")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S72")
public class AvoidSQLRequestInLoop extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
index dc8a4ba..c97cc63 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
@@ -40,6 +40,7 @@
import static org.sonar.plugins.java.api.tree.Tree.Kind.METHOD_INVOCATION;
@Rule(key = "GCI78")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC78")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S78")
public class AvoidSetConstantInBatchUpdate extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
index f7c4099..3c2bb0c 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
@@ -27,6 +27,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI1")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC1")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRC1")
public class AvoidSpringRepositoryCallInLoopOrStreamCheck extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
index 3d261f2..11bfea7 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
@@ -32,6 +32,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI5")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC5")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "SDMLQ1")
public class AvoidStatementForDMLQueries extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
index 267c8bd..73b4a2d 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
@@ -31,6 +31,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI76")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC76")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S76")
public class AvoidUsageOfStaticCollections extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java b/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
index 7f24a38..0a6adf9 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
@@ -36,6 +36,7 @@
@Rule(key = "GCI79")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC79")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S79")
public class FreeResourcesOfAutoCloseableInterface extends IssuableSubscriptionVisitor {
private final Deque withinTry = new LinkedList<>();
diff --git a/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java b/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
index 881a760..9c2e6a8 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
@@ -27,6 +27,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI67")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC67")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S67")
public class IncrementCheck extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java b/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
index 906ca7c..89d6744 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
@@ -28,6 +28,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI32")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC32")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRSP0032")
public class InitializeBufferWithAppropriateSize extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java b/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
index ea34e77..8bfb9d2 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
@@ -38,6 +38,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI69")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC69")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "S69")
public class NoFunctionCallWhenDeclaringForLoop extends IssuableSubscriptionVisitor {
diff --git a/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java b/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
index 999f1e3..6e2ee33 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
@@ -33,6 +33,7 @@
import org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey;
@Rule(key = "GCI28")
+@DeprecatedRuleKey(repositoryKey = "ecocode-java", ruleKey = "EC28")
@DeprecatedRuleKey(repositoryKey = "greencodeinitiative-java", ruleKey = "GRSP0028")
public class OptimizeReadFileExceptions extends IssuableSubscriptionVisitor {
From 6b58d4197802b565b767fa043626057277f82453 Mon Sep 17 00:00:00 2001
From: Vincent Marmin <3215889+vincent314@users.noreply.github.com>
Date: Fri, 6 Dec 2024 16:56:17 +0100
Subject: [PATCH 4/5] chore: set Copyright year to 2024
---
pom.xml | 2 +-
.../checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java | 2 +-
.../checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java | 2 +-
.../java/checks/AvoidSpringRepositoryCallInLoopCheck.java | 2 +-
.../java/checks/AvoidSpringRepositoryCallInStreamCheck.java | 2 +-
.../java/org/greencodeinitiative/java/JavaCheckRegistrar.java | 2 +-
.../org/greencodeinitiative/java/JavaEcoCodeWayProfile.java | 2 +-
src/main/java/org/greencodeinitiative/java/JavaPlugin.java | 2 +-
.../org/greencodeinitiative/java/JavaRulesDefinition.java | 2 +-
.../org/greencodeinitiative/java/checks/ArrayCopyCheck.java | 2 +-
.../greencodeinitiative/java/checks/AvoidFullSQLRequest.java | 2 +-
.../java/checks/AvoidGettingSizeCollectionInLoop.java | 2 +-
.../java/checks/AvoidMultipleIfElseStatement.java | 2 +-
.../java/checks/AvoidRegexPatternNotStatic.java | 2 +-
.../java/checks/AvoidSQLRequestInLoop.java | 2 +-
.../java/checks/AvoidSetConstantInBatchUpdate.java | 2 +-
.../checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java | 2 +-
.../java/checks/AvoidStatementForDMLQueries.java | 2 +-
.../java/checks/AvoidUsageOfStaticCollections.java | 2 +-
.../java/checks/FreeResourcesOfAutoCloseableInterface.java | 2 +-
.../org/greencodeinitiative/java/checks/IncrementCheck.java | 2 +-
.../java/checks/InitializeBufferWithAppropriateSize.java | 2 +-
.../java/checks/NoFunctionCallWhenDeclaringForLoop.java | 2 +-
.../java/checks/OptimizeReadFileExceptions.java | 2 +-
.../java/checks/enums/ConstOrLiteralDeclare.java | 2 +-
.../org/greencodeinitiative/java/utils/PrinterVisitor.java | 2 +-
.../java/org/greencodeinitiative/java/utils/StringUtils.java | 2 +-
src/test/files/ArrayCopyCheck.java | 4 ++--
src/test/files/AvoidFullSQLRequestCheck.java | 2 +-
.../files/AvoidGettingSizeCollectionInForEachLoopIgnored.java | 2 +-
src/test/files/AvoidGettingSizeCollectionInForLoopBad.java | 2 +-
src/test/files/AvoidGettingSizeCollectionInForLoopGood.java | 2 +-
.../files/AvoidGettingSizeCollectionInForLoopIgnored.java | 2 +-
src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java | 2 +-
src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java | 2 +-
.../files/AvoidGettingSizeCollectionInWhileLoopIgnored.java | 2 +-
src/test/files/AvoidMultipleIfElseStatement.java | 2 +-
src/test/files/AvoidMultipleIfElseStatementCompareMethod.java | 2 +-
src/test/files/AvoidMultipleIfElseStatementInterface.java | 2 +-
src/test/files/AvoidMultipleIfElseStatementNoIssue.java | 2 +-
src/test/files/AvoidMultipleIfElseStatementNotBlock.java | 2 +-
src/test/files/AvoidRegexPatternNotStatic.java | 2 +-
src/test/files/AvoidSQLRequestInLoopCheck.java | 2 +-
src/test/files/AvoidSetConstantInBatchUpdateCheck.java | 2 +-
src/test/files/AvoidSpringRepositoryCallInLoopCheck.java | 2 +-
src/test/files/AvoidSpringRepositoryCallInStreamCheck.java | 2 +-
src/test/files/AvoidStatementForDMLQueries.java | 2 +-
src/test/files/AvoidUsageOfStaticCollections.java | 2 +-
src/test/files/FreeResourcesOfAutoCloseableInterface.java | 2 +-
src/test/files/GoodUsageOfStaticCollections.java | 2 +-
src/test/files/GoodWayConcatenateStringsLoop.java | 2 +-
src/test/files/IncrementCheck.java | 4 ++--
src/test/files/InitializeBufferWithAppropriateSize.java | 2 +-
src/test/files/NoFunctionCallWhenDeclaringForLoop.java | 4 ++--
src/test/files/OptimizeReadFileExceptionCheck.java | 2 +-
src/test/files/OptimizeReadFileExceptionCheck2.java | 2 +-
src/test/files/OptimizeReadFileExceptionCheck3.java | 2 +-
src/test/files/OptimizeReadFileExceptionCheck4.java | 2 +-
src/test/files/OptimizeReadFileExceptionCheck5.java | 2 +-
src/test/files/ValidRegexPattern.java | 2 +-
src/test/files/ValidRegexPattern2.java | 2 +-
src/test/files/ValidRegexPattern3.java | 2 +-
.../org/greencodeinitiative/java/JavaCheckRegistrarTest.java | 2 +-
.../greencodeinitiative/java/JavaEcoCodeWayProfileTest.java | 2 +-
.../java/org/greencodeinitiative/java/JavaPluginTest.java | 2 +-
.../org/greencodeinitiative/java/JavaRulesDefinitionTest.java | 2 +-
.../greencodeinitiative/java/checks/ArrayCopyCheckTest.java | 2 +-
.../java/checks/AvoidFullSQLRequestCheckTest.java | 2 +-
.../java/checks/AvoidGettingSizeCollectionInLoopTest.java | 2 +-
.../java/checks/AvoidMultipleIfElseStatementTest.java | 2 +-
.../java/checks/AvoidRegexPatternNotStaticTest.java | 2 +-
.../java/checks/AvoidSQLRequestInLoopCheckTest.java | 2 +-
.../java/checks/AvoidSetConstantInBatchInsertTest.java | 2 +-
.../java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java | 2 +-
.../checks/AvoidSpringRepositoryCallInStreamCheckTest.java | 2 +-
.../java/checks/AvoidStatementForDMLQueriesTest.java | 2 +-
.../java/checks/AvoidUsageOfStaticCollectionsTests.java | 2 +-
.../checks/FreeResourcesOfAutoCloseableInterfaceTest.java | 2 +-
.../greencodeinitiative/java/checks/IncrementCheckTest.java | 2 +-
.../java/checks/InitializeBufferWithAppropriateSizeTest.java | 2 +-
.../java/checks/NoFunctionCallWhenDeclaringForLoopTest.java | 2 +-
.../java/checks/OptimizeReadFileExceptionCheckTest.java | 2 +-
.../java/org/greencodeinitiative/java/utils/FilesUtils.java | 2 +-
.../org/greencodeinitiative/java/utils/StringUtilsTest.java | 2 +-
84 files changed, 87 insertions(+), 87 deletions(-)
diff --git a/pom.xml b/pom.xml
index eda274b..b69b44e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
ecoCode - Java language
Provides rules to reduce the environmental footprint of your Java programs
- 2023
+ 2024
https://github.com/green-code-initiative/ecoCode-java
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java
index 37d87eb..c1aef73 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementInterfaceNoIssue.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java
index b120cee..8bbb202 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementNoBlockNoIssue.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java
index bc6c276..310a257 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java
index 746b77b..e1fe5fb 100644
--- a/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java
+++ b/src/it/test-projects/ecocode-java-plugin-test-project/src/main/java/fr/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/JavaCheckRegistrar.java b/src/main/java/org/greencodeinitiative/java/JavaCheckRegistrar.java
index 72b63d1..9994e5a 100644
--- a/src/main/java/org/greencodeinitiative/java/JavaCheckRegistrar.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaCheckRegistrar.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/JavaEcoCodeWayProfile.java b/src/main/java/org/greencodeinitiative/java/JavaEcoCodeWayProfile.java
index 3046f8e..121cb7a 100644
--- a/src/main/java/org/greencodeinitiative/java/JavaEcoCodeWayProfile.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaEcoCodeWayProfile.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/JavaPlugin.java b/src/main/java/org/greencodeinitiative/java/JavaPlugin.java
index fc73413..e8daf49 100644
--- a/src/main/java/org/greencodeinitiative/java/JavaPlugin.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaPlugin.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/JavaRulesDefinition.java b/src/main/java/org/greencodeinitiative/java/JavaRulesDefinition.java
index 57999df..3725a9c 100644
--- a/src/main/java/org/greencodeinitiative/java/JavaRulesDefinition.java
+++ b/src/main/java/org/greencodeinitiative/java/JavaRulesDefinition.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java b/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
index e417a13..86294b6 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/ArrayCopyCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
index a87f6c2..7f05d29 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
index 9aeabf5..eaf85ac 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoop.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
index fbc4c14..9c27de7 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatement.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
index bf8dcc5..4be3b22 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStatic.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
index 2454345..b00f710 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoop.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
index c97cc63..70f7a0d 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchUpdate.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
index 3c2bb0c..02b8e19 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopOrStreamCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
index 11bfea7..69217dd 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueries.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java b/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
index 73b4a2d..474b267 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollections.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java b/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
index 0a6adf9..76f1009 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterface.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java b/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
index 9c2e6a8..f2838ec 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/IncrementCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java b/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
index 89d6744..176364c 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSize.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java b/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
index 8bfb9d2..be1c6b3 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoop.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java b/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
index 6e2ee33..3d95b6b 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptions.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java b/src/main/java/org/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
index 11a092b..99c2070 100644
--- a/src/main/java/org/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
+++ b/src/main/java/org/greencodeinitiative/java/checks/enums/ConstOrLiteralDeclare.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/utils/PrinterVisitor.java b/src/main/java/org/greencodeinitiative/java/utils/PrinterVisitor.java
index f881be7..701ebe7 100644
--- a/src/main/java/org/greencodeinitiative/java/utils/PrinterVisitor.java
+++ b/src/main/java/org/greencodeinitiative/java/utils/PrinterVisitor.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/main/java/org/greencodeinitiative/java/utils/StringUtils.java b/src/main/java/org/greencodeinitiative/java/utils/StringUtils.java
index c42f9b3..46b723e 100644
--- a/src/main/java/org/greencodeinitiative/java/utils/StringUtils.java
+++ b/src/main/java/org/greencodeinitiative/java/utils/StringUtils.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/ArrayCopyCheck.java b/src/test/files/ArrayCopyCheck.java
index 09c780e..3e85bb9 100644
--- a/src/test/files/ArrayCopyCheck.java
+++ b/src/test/files/ArrayCopyCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -507,4 +507,4 @@ private boolean transform(boolean a) {
return !a;
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/AvoidFullSQLRequestCheck.java b/src/test/files/AvoidFullSQLRequestCheck.java
index d4fd807..c286452 100644
--- a/src/test/files/AvoidFullSQLRequestCheck.java
+++ b/src/test/files/AvoidFullSQLRequestCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java b/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java
index 3d0c6f6..811863f 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForEachLoopIgnored.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java b/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java
index fe49917..4bc2cc0 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForLoopBad.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java b/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java
index bd49019..b8a1e59 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForLoopGood.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java b/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java
index 9b7a934..f22ca28 100644
--- a/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java
+++ b/src/test/files/AvoidGettingSizeCollectionInForLoopIgnored.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java b/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java
index 69efe46..50ee015 100644
--- a/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java
+++ b/src/test/files/AvoidGettingSizeCollectionInWhileLoopBad.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java b/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java
index 3674629..2f79966 100644
--- a/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java
+++ b/src/test/files/AvoidGettingSizeCollectionInWhileLoopGood.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java b/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java
index 0c185a3..4c9bfc9 100644
--- a/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java
+++ b/src/test/files/AvoidGettingSizeCollectionInWhileLoopIgnored.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidMultipleIfElseStatement.java b/src/test/files/AvoidMultipleIfElseStatement.java
index 231b9d2..96181a6 100644
--- a/src/test/files/AvoidMultipleIfElseStatement.java
+++ b/src/test/files/AvoidMultipleIfElseStatement.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java b/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java
index 83a2a38..2eb6744 100644
--- a/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java
+++ b/src/test/files/AvoidMultipleIfElseStatementCompareMethod.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidMultipleIfElseStatementInterface.java b/src/test/files/AvoidMultipleIfElseStatementInterface.java
index bd0ece2..6b79f62 100644
--- a/src/test/files/AvoidMultipleIfElseStatementInterface.java
+++ b/src/test/files/AvoidMultipleIfElseStatementInterface.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidMultipleIfElseStatementNoIssue.java b/src/test/files/AvoidMultipleIfElseStatementNoIssue.java
index 4308213..b7d9223 100644
--- a/src/test/files/AvoidMultipleIfElseStatementNoIssue.java
+++ b/src/test/files/AvoidMultipleIfElseStatementNoIssue.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidMultipleIfElseStatementNotBlock.java b/src/test/files/AvoidMultipleIfElseStatementNotBlock.java
index 55eb118..1860723 100644
--- a/src/test/files/AvoidMultipleIfElseStatementNotBlock.java
+++ b/src/test/files/AvoidMultipleIfElseStatementNotBlock.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidRegexPatternNotStatic.java b/src/test/files/AvoidRegexPatternNotStatic.java
index aeeffc5..129ad2a 100644
--- a/src/test/files/AvoidRegexPatternNotStatic.java
+++ b/src/test/files/AvoidRegexPatternNotStatic.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidSQLRequestInLoopCheck.java b/src/test/files/AvoidSQLRequestInLoopCheck.java
index 81fa6cc..e894ea2 100644
--- a/src/test/files/AvoidSQLRequestInLoopCheck.java
+++ b/src/test/files/AvoidSQLRequestInLoopCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidSetConstantInBatchUpdateCheck.java b/src/test/files/AvoidSetConstantInBatchUpdateCheck.java
index b30220c..0b6b74f 100644
--- a/src/test/files/AvoidSetConstantInBatchUpdateCheck.java
+++ b/src/test/files/AvoidSetConstantInBatchUpdateCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java b/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java
index a3f7f9a..ab49260 100644
--- a/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java
+++ b/src/test/files/AvoidSpringRepositoryCallInLoopCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java b/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java
index 6a291a0..d623db6 100644
--- a/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java
+++ b/src/test/files/AvoidSpringRepositoryCallInStreamCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidStatementForDMLQueries.java b/src/test/files/AvoidStatementForDMLQueries.java
index 230d920..dfe7266 100644
--- a/src/test/files/AvoidStatementForDMLQueries.java
+++ b/src/test/files/AvoidStatementForDMLQueries.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/AvoidUsageOfStaticCollections.java b/src/test/files/AvoidUsageOfStaticCollections.java
index 2481c73..30213cf 100644
--- a/src/test/files/AvoidUsageOfStaticCollections.java
+++ b/src/test/files/AvoidUsageOfStaticCollections.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/FreeResourcesOfAutoCloseableInterface.java b/src/test/files/FreeResourcesOfAutoCloseableInterface.java
index 52365b6..e2174a5 100644
--- a/src/test/files/FreeResourcesOfAutoCloseableInterface.java
+++ b/src/test/files/FreeResourcesOfAutoCloseableInterface.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/GoodUsageOfStaticCollections.java b/src/test/files/GoodUsageOfStaticCollections.java
index 74641bb..200f973 100644
--- a/src/test/files/GoodUsageOfStaticCollections.java
+++ b/src/test/files/GoodUsageOfStaticCollections.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/GoodWayConcatenateStringsLoop.java b/src/test/files/GoodWayConcatenateStringsLoop.java
index 978b2fc..eb84f35 100644
--- a/src/test/files/GoodWayConcatenateStringsLoop.java
+++ b/src/test/files/GoodWayConcatenateStringsLoop.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/IncrementCheck.java b/src/test/files/IncrementCheck.java
index 54b20bf..1055e65 100644
--- a/src/test/files/IncrementCheck.java
+++ b/src/test/files/IncrementCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -60,4 +60,4 @@ void foo51(int value) {
System.out.println(i);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/InitializeBufferWithAppropriateSize.java b/src/test/files/InitializeBufferWithAppropriateSize.java
index 3dc5934..260ead6 100644
--- a/src/test/files/InitializeBufferWithAppropriateSize.java
+++ b/src/test/files/InitializeBufferWithAppropriateSize.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/NoFunctionCallWhenDeclaringForLoop.java b/src/test/files/NoFunctionCallWhenDeclaringForLoop.java
index da72a3e..8321c88 100644
--- a/src/test/files/NoFunctionCallWhenDeclaringForLoop.java
+++ b/src/test/files/NoFunctionCallWhenDeclaringForLoop.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -70,4 +70,4 @@ public void test6() {
}
}
-}
\ No newline at end of file
+}
diff --git a/src/test/files/OptimizeReadFileExceptionCheck.java b/src/test/files/OptimizeReadFileExceptionCheck.java
index cbe6156..5eace2a 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/OptimizeReadFileExceptionCheck2.java b/src/test/files/OptimizeReadFileExceptionCheck2.java
index 8345a7f..e974b3d 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck2.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck2.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/OptimizeReadFileExceptionCheck3.java b/src/test/files/OptimizeReadFileExceptionCheck3.java
index 6a942ac..83aac94 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck3.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck3.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/OptimizeReadFileExceptionCheck4.java b/src/test/files/OptimizeReadFileExceptionCheck4.java
index fd04144..33caa46 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck4.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck4.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/OptimizeReadFileExceptionCheck5.java b/src/test/files/OptimizeReadFileExceptionCheck5.java
index cb07f73..5367ffd 100644
--- a/src/test/files/OptimizeReadFileExceptionCheck5.java
+++ b/src/test/files/OptimizeReadFileExceptionCheck5.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/ValidRegexPattern.java b/src/test/files/ValidRegexPattern.java
index 1f0873c..942432a 100644
--- a/src/test/files/ValidRegexPattern.java
+++ b/src/test/files/ValidRegexPattern.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/ValidRegexPattern2.java b/src/test/files/ValidRegexPattern2.java
index 97760e1..92f88c8 100644
--- a/src/test/files/ValidRegexPattern2.java
+++ b/src/test/files/ValidRegexPattern2.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/files/ValidRegexPattern3.java b/src/test/files/ValidRegexPattern3.java
index 70d8369..e6dfb88 100644
--- a/src/test/files/ValidRegexPattern3.java
+++ b/src/test/files/ValidRegexPattern3.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/JavaCheckRegistrarTest.java b/src/test/java/org/greencodeinitiative/java/JavaCheckRegistrarTest.java
index 0401dec..9ced970 100644
--- a/src/test/java/org/greencodeinitiative/java/JavaCheckRegistrarTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaCheckRegistrarTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java b/src/test/java/org/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
index 9f161ed..b812a49 100644
--- a/src/test/java/org/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaEcoCodeWayProfileTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/JavaPluginTest.java b/src/test/java/org/greencodeinitiative/java/JavaPluginTest.java
index 9c35fdc..7712f99 100644
--- a/src/test/java/org/greencodeinitiative/java/JavaPluginTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaPluginTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/JavaRulesDefinitionTest.java b/src/test/java/org/greencodeinitiative/java/JavaRulesDefinitionTest.java
index b2d4091..8f6f2dd 100644
--- a/src/test/java/org/greencodeinitiative/java/JavaRulesDefinitionTest.java
+++ b/src/test/java/org/greencodeinitiative/java/JavaRulesDefinitionTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/ArrayCopyCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
index 9a73afa..7e32f4e 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/ArrayCopyCheckTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
index 8ed3003..8453f31 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidFullSQLRequestCheckTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
index fda429f..9b74a62 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidGettingSizeCollectionInLoopTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
index 7f0d11f..e7bd132 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidMultipleIfElseStatementTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
index a01be0b..2445c94 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidRegexPatternNotStaticTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
index 7bc0dc7..9e7b632 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSQLRequestInLoopCheckTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
index c9b300f..bd0bc6f 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSetConstantInBatchInsertTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
index ff5bdc7..c8e05f3 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInLoopCheckTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
index 1df0cad..4076c7e 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidSpringRepositoryCallInStreamCheckTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
index d247444..6262542 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidStatementForDMLQueriesTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java b/src/test/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
index 4067128..4697c21 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/AvoidUsageOfStaticCollectionsTests.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java b/src/test/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
index 1fe62d2..03c2095 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/FreeResourcesOfAutoCloseableInterfaceTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/IncrementCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/IncrementCheckTest.java
index 7463017..4b075d0 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/IncrementCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/IncrementCheckTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java b/src/test/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
index 5ff8ac9..f114984 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/InitializeBufferWithAppropriateSizeTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java b/src/test/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
index 29b4db4..32bf0c4 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/NoFunctionCallWhenDeclaringForLoopTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java b/src/test/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
index 5ddb725..293f243 100644
--- a/src/test/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
+++ b/src/test/java/org/greencodeinitiative/java/checks/OptimizeReadFileExceptionCheckTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/utils/FilesUtils.java b/src/test/java/org/greencodeinitiative/java/utils/FilesUtils.java
index f543b33..78cfcd2 100644
--- a/src/test/java/org/greencodeinitiative/java/utils/FilesUtils.java
+++ b/src/test/java/org/greencodeinitiative/java/utils/FilesUtils.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/test/java/org/greencodeinitiative/java/utils/StringUtilsTest.java b/src/test/java/org/greencodeinitiative/java/utils/StringUtilsTest.java
index 8d95da5..011518c 100644
--- a/src/test/java/org/greencodeinitiative/java/utils/StringUtilsTest.java
+++ b/src/test/java/org/greencodeinitiative/java/utils/StringUtilsTest.java
@@ -1,6 +1,6 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
- * Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
+ * Copyright © 2024 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
From d619ac784554a6da1c60bce05c273f1748ceceff Mon Sep 17 00:00:00 2001
From: Vincent Marmin <3215889+vincent314@users.noreply.github.com>
Date: Wed, 11 Dec 2024 14:53:17 +0100
Subject: [PATCH 5/5] fix: bump version of creedengo-rules-specifications to
2.0.0
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b69b44e..bbe7112 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
1.7
- main-SNAPSHOT
+ 2.0.0
https://repo1.maven.org/maven2