From e9f187fd65891684a8d4d02907f0921a03619bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mangaretto=20L=C3=A9o?= Date: Tue, 19 Nov 2024 11:15:09 +0100 Subject: [PATCH] rollback somes renaming changes for a specific PR --- CHANGELOG.md | 6 +++--- pom.xml | 10 +++++----- .../python/PythonRuleRepository.java | 6 +++--- .../python/PythonRuleRepositoryTest.java | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0006718..5a71051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,7 +63,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - [#14](https://github.com/green-code-initiative/creedengo-python/issues/14) Correction of error with deprecated EC34 rule -- Update creedengo-rules-specifications to 1.4.7 +- Update ecocode-rules-specifications to 1.4.7 ## [1.4.1] - 2024-01-05 @@ -79,7 +79,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 specific use case ("file not found" specific) - [#7](https://github.com/green-code-initiative/creedengo-python/issues/7) Add build number to manifest - [#123](https://github.com/green-code-initiative/creedengo/issues/123) Improve unit tests for EC7 rule -- Update creedengo-rules-specifications to 1.4.6 +- Update ecocode-rules-specifications to 1.4.6 - README.md upgrade : docker test environment - [#10](https://github.com/green-code-initiative/creedengo-python/issues/10) Correction of NullPointException in EC2 rule @@ -92,7 +92,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Python rules moved from `creedengo` repository to current repository +- Python rules moved from `ecocode` repository to current repository - [#142](https://github.com/green-code-initiative/creedengo/issues/142) new Python rule : Multiple if-else statement + refactoring implementation - [#205](https://github.com/green-code-initiative/creedengo/issues/205) compatibility with SonarQube 10.1 diff --git a/pom.xml b/pom.xml index cfe9f5a..13ca5b1 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - io.creedengo + io.ecocode creedengo-python-plugin 1.5.1-SNAPSHOT sonar-plugin @@ -61,15 +61,15 @@ 5.14.1 - 1.6.4 + 1.6.4 ${project.groupId} - creedengo-rules-specifications - ${creedengo-rules-specifications.version} + ecocode-rules-specifications + ${ecocode-rules-specifications.version} python @@ -221,7 +221,7 @@ - io.creedengo:creedengo-rules-specifications:* + io.ecocode:ecocode-rules-specifications:* META-INF/** diff --git a/src/main/java/fr/greencodeinitiative/python/PythonRuleRepository.java b/src/main/java/fr/greencodeinitiative/python/PythonRuleRepository.java index 2c92a82..f8677dd 100644 --- a/src/main/java/fr/greencodeinitiative/python/PythonRuleRepository.java +++ b/src/main/java/fr/greencodeinitiative/python/PythonRuleRepository.java @@ -44,9 +44,9 @@ public class PythonRuleRepository implements RulesDefinition, PythonCustomRuleRe ); public static final String LANGUAGE = "py"; - public static final String NAME = "creedengo"; - public static final String RESOURCE_BASE_PATH = "io/creedengo/rules/python"; - public static final String REPOSITORY_KEY = "creedengo-python"; + public static final String NAME = "ecocode"; + public static final String RESOURCE_BASE_PATH = "io/ecocode/rules/python"; + public static final String REPOSITORY_KEY = "ecocode-python"; private final SonarRuntime sonarRuntime; diff --git a/src/test/java/fr/greencodeinitiative/python/PythonRuleRepositoryTest.java b/src/test/java/fr/greencodeinitiative/python/PythonRuleRepositoryTest.java index da09f28..a07fac2 100644 --- a/src/test/java/fr/greencodeinitiative/python/PythonRuleRepositoryTest.java +++ b/src/test/java/fr/greencodeinitiative/python/PythonRuleRepositoryTest.java @@ -51,9 +51,9 @@ void init() { @Test @DisplayName("Test repository metadata") void testMetadata() { - assertThat(repository.name()).isEqualTo("creedengo"); + assertThat(repository.name()).isEqualTo("ecocode"); assertThat(repository.language()).isEqualTo("py"); - assertThat(repository.key()).isEqualTo("creedengo-python"); + assertThat(repository.key()).isEqualTo("ecocode-python"); } @Test