Skip to content

Commit 91956f7

Browse files
authored
Merge pull request #78 from green-code-initiative/ecocode2creedengo
migration from ecocode to creedengo
2 parents fe88c79 + 2cfa25c commit 91956f7

134 files changed

Lines changed: 412 additions & 411 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/_BACKUP_manual_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
id: export_jar_files
6161
uses: actions/upload-artifact@v3
6262
with:
63-
name: ecocode-plugins
63+
name: creedengo-plugins
6464
path: lib
6565
- name: Export LAST_TAG
6666
id: export_last_tag
@@ -77,7 +77,7 @@ jobs:
7777
id: import_jar_files
7878
uses: actions/download-artifact@v3
7979
with:
80-
name: ecocode-plugins
80+
name: creedengo-plugins
8181
path: lib
8282
- name: Upload Release Asset - Java Plugin
8383
id: upload-release-asset
@@ -86,6 +86,6 @@ jobs:
8686
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8787
with:
8888
upload_url: ${{needs.build.outputs.upload_url}}
89-
asset_path: lib/ecocode-java-plugin-${{ needs.build.outputs.last_tag }}.jar
90-
asset_name: ecocode-java-plugin-${{ needs.build.outputs.last_tag }}.jar
89+
asset_path: lib/creedengo-java-plugin-${{ needs.build.outputs.last_tag }}.jar
90+
asset_name: creedengo-java-plugin-${{ needs.build.outputs.last_tag }}.jar
9191
asset_content_type: application/zip

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ jobs:
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
54-
run: ./mvnw -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_ecoCode-java
54+
run: ./mvnw -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_creedengo-java

.github/workflows/build_container.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ on:
1414

1515
env:
1616
# github.repository as <account>/<repo>
17-
# IMAGE_NAME: sonarqube-ecocode
17+
# IMAGE_NAME: sonarqube-creedengo
1818
# IMAGES: |
19-
# ghcr.io/${{ github.repository_owner }}/sonarqube-ecocode
20-
IMAGE_NAME: sonarqube-ecocode-java
19+
# ghcr.io/${{ github.repository_owner }}/sonarqube-creedengo
20+
IMAGE_NAME: sonarqube-creedengo-java
2121
IMAGES: |
22-
ghcr.io/${{ github.repository_owner }}/sonarqube-ecocode-java
22+
ghcr.io/${{ github.repository_owner }}/sonarqube-creedengo-java
2323
2424
jobs:
2525
Build:

.github/workflows/tag_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: export_jar_files
4646
uses: actions/upload-artifact@v3
4747
with:
48-
name: ecocode-plugins
48+
name: creedengo-plugins
4949
path: target
5050
- name: Export UPLOAD_URL
5151
id: export_upload_url
@@ -60,7 +60,7 @@ jobs:
6060
id: import_jar_files
6161
uses: actions/download-artifact@v3
6262
with:
63-
name: ecocode-plugins
63+
name: creedengo-plugins
6464
path: target
6565
- name: Upload Release Asset - Java Plugin
6666
id: upload-release-asset
@@ -69,6 +69,6 @@ jobs:
6969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7070
with:
7171
upload_url: ${{needs.build.outputs.upload_url}}
72-
asset_path: target/ecocode-java-plugin-${{ github.ref_name }}.jar
73-
asset_name: ecocode-java-plugin-${{ github.ref_name }}.jar
72+
asset_path: target/creedengo-java-plugin-${{ github.ref_name }}.jar
73+
asset_name: creedengo-java-plugin-${{ github.ref_name }}.jar
7474
asset_content_type: application/zip

CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,53 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
- [#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
13-
- [#53](https://github.com/green-code-initiative/ecoCode-java/issues/53) Improve integration tests
12+
- [#59](https://github.com/green-code-initiative/creedengo-java/pull/59) Add builtin profile `ecoCode way` to aggregate all implemented ecoCode rules by this plugin
13+
- [#53](https://github.com/green-code-initiative/creedengo-java/issues/53) Improve integration tests
1414
- Rename rules ECXXX to the new Green Code Initiative naming convention GCIXXX
1515

1616
### Changed
1717

18-
- [#49](https://github.com/green-code-initiative/ecoCode-java/pull/49) Add test to ensure all Rules are registered
19-
- [#336](https://github.com/green-code-initiative/ecoCode/issues/336) [Adds Maven Wrapper](https://github.com/green-code-initiative/ecoCode-java/pull/67)
18+
- [#49](https://github.com/green-code-initiative/creedengo-java/pull/49) Add test to ensure all Rules are registered
19+
- [#336](https://github.com/green-code-initiative/creedengo-rules-specifications/issues/336) [Adds Maven Wrapper](https://github.com/green-code-initiative/creedengo-java/pull/67)
2020

2121
### Deleted
2222

2323
## [1.6.2] - 2024-07-21
2424

2525
### Changed
2626

27-
- [#60](https://github.com/green-code-initiative/ecoCode-java/issues/60) Check + update for SonarQube 10.6.0 compatibility
27+
- [#60](https://github.com/green-code-initiative/creedengo-java/issues/60) Check + update for SonarQube 10.6.0 compatibility
2828
- refactoring docker system
2929
- upgrade ecocode-rules-specifications to 1.6.2
3030

3131
## [1.6.1] - 2024-05-15
3232

3333
### Changed
3434

35-
- [#15](https://github.com/green-code-initiative/ecoCode-java/issues/15) correction NullPointer in EC2 rule
35+
- [#15](https://github.com/green-code-initiative/creedengo-java/issues/15) correction NullPointer in EC2 rule
3636
- check Sonarqube 10.5.1 compatibility + update docker files and README.md
3737

3838
## [1.6.0] - 2024-02-02
3939

4040
### Added
4141

42-
- [#12](https://github.com/green-code-initiative/ecoCode-java/issues/12) Add support for SonarQube 10.4 "DownloadOnlyWhenRequired" feature
42+
- [#12](https://github.com/green-code-initiative/creedengo-java/issues/12) Add support for SonarQube 10.4 "DownloadOnlyWhenRequired" feature
4343

4444
### Deleted
4545

46-
- [#6](https://github.com/green-code-initiative/ecoCode-java/pull/6) Delete deprecated java rules EC4, EC53, EC63 and EC75
46+
- [#6](https://github.com/green-code-initiative/creedengo-java/pull/6) Delete deprecated java rules EC4, EC53, EC63 and EC75
4747

4848
## [1.5.2] - 2024-01-23
4949

5050
### Changed
5151

52-
- [#9](https://github.com/green-code-initiative/ecoCode-java/issues/9) EC2 rule : correction no block statement use case
52+
- [#9](https://github.com/green-code-initiative/creedengo-java/issues/9) EC2 rule : correction no block statement use case
5353

5454
## [1.5.1] - 2024-01-23
5555

5656
### Changed
5757

58-
- [#7](https://github.com/green-code-initiative/ecoCode-java/issues/7) EC2 rule : correction NullPointer with interface
58+
- [#7](https://github.com/green-code-initiative/creedengo-java/issues/7) EC2 rule : correction NullPointer with interface
5959

6060
## [1.5.0] - 2024-01-06
6161

@@ -68,9 +68,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6868

6969
- Update ecocode-rules-specifications to 1.4.6
7070

71-
[unreleased](https://github.com/green-code-initiative/ecoCode-java/compare/1.6.1...HEAD)
72-
[1.6.1](https://github.com/green-code-initiative/ecoCode-java/compare/1.6.0...1.6.1)
73-
[1.6.0](https://github.com/green-code-initiative/ecoCode-java/compare/1.5.2...1.6.0)
74-
[1.5.2](https://github.com/green-code-initiative/ecoCode-java/compare/1.5.1...1.5.2)
75-
[1.5.1](https://github.com/green-code-initiative/ecoCode-java/compare/1.5.0...1.5.1)
76-
[1.5.0](https://github.com/green-code-initiative/ecoCode-java/releases/tag/1.5.0)
71+
[unreleased](https://github.com/green-code-initiative/creedengo-java/compare/1.6.1...HEAD)
72+
[1.6.1](https://github.com/green-code-initiative/creedengo-java/compare/1.6.0...1.6.1)
73+
[1.6.0](https://github.com/green-code-initiative/creedengo-java/compare/1.5.2...1.6.0)
74+
[1.5.2](https://github.com/green-code-initiative/creedengo-java/compare/1.5.1...1.5.2)
75+
[1.5.1](https://github.com/green-code-initiative/creedengo-java/compare/1.5.0...1.5.1)
76+
[1.5.0](https://github.com/green-code-initiative/creedengo-java/releases/tag/1.5.0)

CODE_STYLE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Please read common [CODE_STYLE.md](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/CODE_STYLE.md) in `ecoCode-common` repository.
1+
Please read common [CODE_STYLE.md](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/CODE_STYLE.md) in `creedengo-common` repository.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Please read common [CONTRIBUTING.md](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/CONTRIBUTING.md) in `ecoCode-common` repository.
1+
Please read common [CONTRIBUTING.md](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/CONTRIBUTING.md) in `creedengo-common` repository.

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ ARG SONARQUBE_VERSION=10.6.0-community
33

44
FROM maven:${MAVEN_BUILDER} AS builder
55

6-
COPY . /usr/src/ecocode
6+
COPY . /usr/src/creedengo
77

8-
WORKDIR /usr/src/ecocode
8+
WORKDIR /usr/src/creedengo
99
COPY src src/
1010
COPY pom.xml tool_build.sh ./
1111

1212
RUN ./tool_build.sh
1313

1414
FROM sonarqube:${SONARQUBE_VERSION}
15-
COPY --from=builder /usr/src/ecocode/target/ecocode-*.jar /opt/sonarqube/extensions/plugins/
15+
COPY --from=builder /usr/src/creedengo/target/creedengo-*.jar /opt/sonarqube/extensions/plugins/
1616
USER sonarqube

INSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Common installation notes / requirements
22
========================================
33

4-
Please read common [INSTALL.md](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/INSTALL.md)
5-
in `ecoCode-common` repository. Please follow the specific guides below for additional information on installing the
4+
Please read common [INSTALL.md](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/INSTALL.md)
5+
in `creedengo-common` repository. Please follow the specific guides below for additional information on installing the
66
desired plugins.
77

88
Special points for Standard plugins
@@ -14,7 +14,7 @@ Project structure
1414
Here is a preview of project tree :
1515

1616
```txt
17-
ecoCode-java # Root directory
17+
creedengo-java # Root directory
1818
|
1919
+--src # source directory
2020
|

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
EcoCode-java
1+
creedengo-java
22
===========
33

4-
_ecoCode_ is a collective project aiming to reduce environmental footprint of software at the code level. The goal of
4+
_creedengo_ is a collective project aiming to reduce environmental footprint of software at the code level. The goal of
55
the project is to provide a list of static code analyzers to highlight code structures that may have a negative
66
ecological impact: energy and resources over-consumption, "fatware", shortening terminals' lifespan, etc.
77

8-
_ecoCode_ is based on evolving catalogs
9-
of [good practices](https://github.com/green-code-initiative/ecoCode/blob/main/docs/rules), for various technologies.
8+
_creedengo_ is based on evolving catalogs
9+
of [good practices](https://github.com/green-code-initiative/creedengo-rules-specifications/blob/main/docs/rules), for various technologies.
1010
This
1111
SonarQube plugin then implements these catalogs as rules for scanning your Java projects.
1212

1313
> ⚠️ This is still a very early stage project. Any feedback or contribution will be highly appreciated. Please
1414
> refer to the contribution section.
1515
1616
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
17-
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/CODE_OF_CONDUCT.md)
17+
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/CODE_OF_CONDUCT.md)
1818

1919
🌿 SonarQube Plugins
2020
-------------------
2121

22-
This plugin is part of the ecoCode project.\
22+
This plugin is part of the creedengo project.\
2323
You can find a list of all our other plugins in
24-
the [ecoCode repository](https://github.com/green-code-initiative/ecoCode#-sonarqube-plugins)
24+
the [creedengo repository](https://github.com/green-code-initiative/creedengo-rules-specifications#-sonarqube-plugins)
2525

2626
🚀 Getting Started
2727
------------------
@@ -32,9 +32,9 @@ You can give a try with a one command:
3232
./mvnw verify -Pkeep-running
3333
```
3434

35-
... then you can use Java test project repository to test the environment : see [Java test project in `./src/it/test-projects/ecocode-java-plugin-test-project`](./src/it/test-projects/ecocode-java-plugin-test-project)
35+
... then you can use Java test project repository to test the environment : see [Java test project in `./src/it/test-projects/creedengo-java-plugin-test-project`](./src/it/test-projects/creedengo-java-plugin-test-project)
3636

37-
NB: To install other `ecocode` plugins, you can :
37+
NB: To install other `creedengo` plugins, you can :
3838

3939
- add JAVA System properties `Dtest-it.additional-plugins` with a comma separated list of plugin IDs (`groupId:artifactId:version`), or plugins JAR (`file://....`) to install.
4040

@@ -43,16 +43,16 @@ NB: To install other `ecocode` plugins, you can :
4343
```sh
4444
./mvnw verify -Pkeep-running -Dtest-it.additional-plugins=org.sonarsource.javascript:sonar-plugin:10.1.0.21143
4545
```
46-
- install different ecocode plugins with Marketplace (inside admin panel of SonarQube)
46+
- install different creedengo plugins with Marketplace (inside admin panel of SonarQube)
4747

48-
You can also directly use a [all-in-one docker-compose](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/INSTALL.md#start-sonarqube-if-first-time)
48+
You can also directly use a [all-in-one docker-compose](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/INSTALL.md#start-sonarqube-if-first-time)
4949

50-
... and configure local SonarQube (security config and quality profile : see [configuration](https://github.com/green-code-initiative/ecoCode-common/blob/main/doc/INSTALL.md#configuration-sonarqube) for more details).
50+
... and configure local SonarQube (security config and quality profile : see [configuration](https://github.com/green-code-initiative/creedengo-common/blob/main/doc/INSTALL.md#configuration-sonarqube) for more details).
5151

5252
🛒 Distribution
5353
------------------
5454

55-
Ready to use binaries are available [from GitHub](https://github.com/green-code-initiative/ecoCode-java/releases).
55+
Ready to use binaries are available [from GitHub](https://github.com/green-code-initiative/creedengo-java/releases).
5656

5757
🧩 Compatibility
5858
-----------------
@@ -63,17 +63,17 @@ Ready to use binaries are available [from GitHub](https://github.com/green-code-
6363
| 1.7.+ | 9.9.+ LTS to 10.6.0 | [17](https://docs.sonarsource.com/sonarqube/9.9/requirements/prerequisites-and-overview/#java) |
6464

6565
> Compatibility table of versions lower than 1.4.+ are available from the
66-
> main [ecoCode repository](https://github.com/green-code-initiative/ecoCode#-plugins-version-compatibility).
66+
> main [creedengo repository](https://github.com/green-code-initiative/creedengo-rules-specifications#-plugins-version-compatibility).
6767
6868
🤝 Contribution
6969
---------------
7070

71-
check [ecoCode repository](https://github.com/green-code-initiative/ecoCode#-contribution)
71+
check [creedengo repository](https://github.com/green-code-initiative/creedengo-rules-specifications#-contribution)
7272

7373
🤓 Main contributors
7474
--------------------
7575

76-
check [ecoCode repository](https://github.com/green-code-initiative/ecoCode#-main-contributors)
76+
check [creedengo repository](https://github.com/green-code-initiative/creedengo-rules-specifications#-main-contributors)
7777

7878
Links
7979
-----

0 commit comments

Comments
 (0)