Skip to content

Commit 1d9fb32

Browse files
authored
Merge pull request #43 from Lmgrto/lmangaretto-renommage
Lmangaretto renommage
2 parents b50615c + 02baec2 commit 1d9fb32

38 files changed

+123
-123
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ jobs:
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
60-
run: mvn -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_ecoCode-python
60+
run: mvn -e -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=green-code-initiative_creedengo-python

.github/workflows/build_container.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ on:
1313
# - main
1414

1515
env:
16-
IMAGE_NAME: sonarqube-ecocode-python
16+
IMAGE_NAME: sonarqube-creedengo-python
1717
IMAGES: |
18-
ghcr.io/${{ github.repository_owner }}/sonarqube-ecocode-python
18+
ghcr.io/${{ github.repository_owner }}/sonarqube-creedengo-python
1919
2020
jobs:
2121
Build:

.github/workflows/manual_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
id: export_jar_files
6363
uses: actions/upload-artifact@v3
6464
with:
65-
name: ecocode-plugins
65+
name: creedengo-plugins
6666
path: lib
6767
- name: Export LAST_TAG
6868
id: export_last_tag
@@ -80,7 +80,7 @@ jobs:
8080
id: import_jar_files
8181
uses: actions/download-artifact@v3
8282
with:
83-
name: ecocode-plugins
83+
name: creedengo-plugins
8484
path: lib
8585
- name: Upload Release Asset - Python Plugin
8686
id: upload-release-asset
@@ -89,6 +89,6 @@ jobs:
8989
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9090
with:
9191
upload_url: ${{needs.build.outputs.upload_url}}
92-
asset_path: lib/ecocode-python-plugin-${{ needs.build.outputs.last_tag }}.jar
93-
asset_name: ecocode-python-plugin-${{ needs.build.outputs.last_tag }}.jar
92+
asset_path: lib/creedengo-python-plugin-${{ needs.build.outputs.last_tag }}.jar
93+
asset_name: creedengo-python-plugin-${{ needs.build.outputs.last_tag }}.jar
9494
asset_content_type: application/zip

.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 - Python 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-python-plugin-${{ github.ref_name }}.jar
73-
asset_name: ecocode-python-plugin-${{ github.ref_name }}.jar
72+
asset_path: target/creedengo-python-plugin-${{ github.ref_name }}.jar
73+
asset_name: creedengo-python-plugin-${{ github.ref_name }}.jar
7474
asset_content_type: application/zip

CHANGELOG.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
### Changed
1919

2020
- refactoring docker system
21-
- [#29](https://github.com/green-code-initiative/ecoCode-python/issues/29) Add test to ensure all Rules are registered
22-
- [#24](https://github.com/green-code-initiative/ecoCode-python/issues/24) Set correct required language because the
21+
- [#29](https://github.com/green-code-initiative/creedengo-python/issues/29) Add test to ensure all Rules are registered
22+
- [#24](https://github.com/green-code-initiative/creedengo-python/issues/24) Set correct required language because the
2323
plugin wasn't loaded anymore - retro-compatibility modifications (9.9.0 to 10.7 and not compatible before 9.9.0) AND
2424
add support for > 10.5 Sonarqube version (up to 10.7.0)
2525
- update some maven plugin versions and library versions to be up-to-date
@@ -33,36 +33,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3333

3434
### Added
3535

36-
- [#26](https://github.com/green-code-initiative/ecoCode-python/issues/26) [EC89] Avoid unlimited cache
36+
- [#26](https://github.com/green-code-initiative/creedengo-python/issues/26) [EC89] Avoid unlimited cache
3737

3838
### Changed
3939

40-
- [#22](https://github.com/green-code-initiative/ecoCode-python/issues/22) Depreciation of EC69 rule for python because
40+
- [#22](https://github.com/green-code-initiative/creedengo-python/issues/22) Depreciation of EC69 rule for python because
4141
not relevant (after analysis)
4242

4343
### Deleted
4444

45-
- [#22](https://github.com/green-code-initiative/ecoCode-python/issues/22) Delete deprecated EC66 rule for Python
45+
- [#22](https://github.com/green-code-initiative/creedengo-python/issues/22) Delete deprecated EC66 rule for Python
4646

4747
## [1.4.3] - 2024-05-15
4848

4949
### Added
5050

51-
- [#18](https://github.com/green-code-initiative/ecoCode-python/issues/18) Add support for SonarQube 10.4 "
51+
- [#18](https://github.com/green-code-initiative/creedengo-python/issues/18) Add support for SonarQube 10.4 "
5252
DownloadOnlyWhenRequired" feature
5353
- Add Support for SonarQube 10.4.1
5454

5555
### Changed
5656

57-
- [#17](https://github.com/green-code-initiative/ecoCode-python/issues/17) EC7 - correction setter problem on
57+
- [#17](https://github.com/green-code-initiative/creedengo-python/issues/17) EC7 - correction setter problem on
5858
constructor method
5959
- check Sonarqube 10.4.1 compatibility + update docker files and README.md / NOT OK with 10.5.x (issue created)
6060

6161
## [1.4.2] - 2024-01-11
6262

6363
### Changed
6464

65-
- [#14](https://github.com/green-code-initiative/ecoCode-python/issues/14) Correction of error with deprecated EC34 rule
65+
- [#14](https://github.com/green-code-initiative/creedengo-python/issues/14) Correction of error with deprecated EC34 rule
6666
- Update ecocode-rules-specifications to 1.4.7
6767

6868
## [1.4.1] - 2024-01-05
@@ -73,36 +73,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7373

7474
### Changed
7575

76-
- [#5](https://github.com/green-code-initiative/ecoCode-python/pull/5) Upgrade licence system and licence headers of
76+
- [#5](https://github.com/green-code-initiative/creedengo-python/pull/5) Upgrade licence system and licence headers of
7777
Java files
78-
- [#6](https://github.com/green-code-initiative/ecoCode-python/pull/6) Adding EC35 rule : EC35 rule replaces EC34 with a
78+
- [#6](https://github.com/green-code-initiative/creedengo-python/pull/6) Adding EC35 rule : EC35 rule replaces EC34 with a
7979
specific use case ("file not found" specific)
80-
- [#7](https://github.com/green-code-initiative/ecoCode-python/issues/7) Add build number to manifest
81-
- [#123](https://github.com/green-code-initiative/ecoCode/issues/123) Improve unit tests for EC7 rule
80+
- [#7](https://github.com/green-code-initiative/creedengo-python/issues/7) Add build number to manifest
81+
- [#123](https://github.com/green-code-initiative/creedengo/issues/123) Improve unit tests for EC7 rule
8282
- Update ecocode-rules-specifications to 1.4.6
8383
- README.md upgrade : docker test environment
84-
- [#10](https://github.com/green-code-initiative/ecoCode-python/issues/10) Correction of NullPointException in EC2 rule
84+
- [#10](https://github.com/green-code-initiative/creedengo-python/issues/10) Correction of NullPointException in EC2 rule
8585

8686
### Deleted
8787

88-
- [#4](https://github.com/green-code-initiative/ecoCode-python/issues/4) Deprecate rule EC66 for Python because not
88+
- [#4](https://github.com/green-code-initiative/creedengo-python/issues/4) Deprecate rule EC66 for Python because not
8989
applicable (see details inside issue)
9090

9191
## [1.4.0] - 2023-08-08
9292

9393
### Added
9494

95-
- Python rules moved from `ecoCode` repository to current repository
96-
- [#142](https://github.com/green-code-initiative/ecoCode/issues/142) new Python rule : Multiple if-else statement +
95+
- Python rules moved from `ecocode` repository to current repository
96+
- [#142](https://github.com/green-code-initiative/creedengo/issues/142) new Python rule : Multiple if-else statement +
9797
refactoring implementation
98-
- [#205](https://github.com/green-code-initiative/ecoCode/issues/205) compatibility with SonarQube 10.1
98+
- [#205](https://github.com/green-code-initiative/creedengo/issues/205) compatibility with SonarQube 10.1
9999

100100
## Comparison list
101101

102-
[unreleased](https://github.com/green-code-initiative/ecoCode-python/compare/1.5.0...HEAD)
103-
[1.5.0](https://github.com/green-code-initiative/ecoCode-python/compare/1.4.4...1.5.0)
104-
[1.4.4](https://github.com/green-code-initiative/ecoCode-python/compare/1.4.3...1.4.4)
105-
[1.4.3](https://github.com/green-code-initiative/ecoCode-python/compare/1.4.2...1.4.3)
106-
[1.4.2](https://github.com/green-code-initiative/ecoCode-python/compare/1.4.1...1.4.2)
107-
[1.4.1](https://github.com/green-code-initiative/ecoCode-python/compare/1.4.0...1.4.1)
108-
[1.4.0](https://github.com/green-code-initiative/ecoCode-python/releases/tag/1.4.0)
102+
[unreleased](https://github.com/green-code-initiative/creedengo-python/compare/1.5.0...HEAD)
103+
[1.5.0](https://github.com/green-code-initiative/creedengo-python/compare/1.4.4...1.5.0)
104+
[1.4.4](https://github.com/green-code-initiative/creedengo-python/compare/1.4.3...1.4.4)
105+
[1.4.3](https://github.com/green-code-initiative/creedengo-python/compare/1.4.2...1.4.3)
106+
[1.4.2](https://github.com/green-code-initiative/creedengo-python/compare/1.4.1...1.4.2)
107+
[1.4.1](https://github.com/green-code-initiative/creedengo-python/compare/1.4.0...1.4.1)
108+
[1.4.0](https://github.com/green-code-initiative/creedengo-python/releases/tag/1.4.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.7.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-python # Root directory
17+
creedengo-python # Root directory
1818
|
1919
+--src # source directory
2020
|

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
EcoCode-python
1+
creedengo-python
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

@@ -14,14 +14,14 @@ SonarQube plugin then implements these catalogs as rules for scanning your Pytho
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#-sonarqube-plugins)
2525

2626
🚀 Getting Started
2727
------------------
@@ -31,34 +31,34 @@ You can give a try with a one command docker :
3131
```sh
3232
docker run -ti --rm \
3333
-p 9000:9000 \
34-
--name sonarqube-ecocode-python ghcr.io/green-code-initiative/sonarqube-ecocode-python:latest
34+
--name sonarqube-creedengo-python ghcr.io/green-code-initiative/sonarqube-creedengo-python:latest
3535
```
3636

3737
or (with logs and data locally stored) :
3838

3939
```sh
4040
docker run -ti --rm \
41-
-v sq_ecocode_logs:/opt/sonarqube/logs \
42-
-v sq_ecocode_data:/opt/sonarqube/data \
41+
-v sq_creedengo_logs:/opt/sonarqube/logs \
42+
-v sq_creedengo_data:/opt/sonarqube/data \
4343
-p 9000:9000 \
44-
--name sonarqube-ecocode-python ghcr.io/green-code-initiative/sonarqube-ecocode-python:latest
44+
--name sonarqube-creedengo-python ghcr.io/green-code-initiative/sonarqube-creedengo-python:latest
4545
```
4646

47-
... 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).
47+
... 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).
4848

49-
To install other `ecocode` plugins, you can also :
49+
To install other `creedengo` plugins, you can also :
5050

5151
- download each plugin separatly and copy the plugin (jar file) to `$SONAR_INSTALL_DIR/extensions/plugins` and restart SonarQube.
52-
- install different ecocode plugins with Marketplace (inside admin panel of SonarQube)
52+
- install different creedengo plugins with Marketplace (inside admin panel of SonarQube)
5353

54-
Then you can use Python test project repository to test the environment : see README.md of [Python test project](https://github.com/green-code-initiative/ecoCode-python-test-project)
54+
Then you can use Python test project repository to test the environment : see README.md of [Python test project](https://github.com/green-code-initiative/creedengo-python-test-project)
5555

56-
Finally, you can 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)
56+
Finally, you can 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)
5757

5858
🛒 Distribution
5959
------------------
6060

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

6363
🧩 Compatibility
6464
------------------

0 commit comments

Comments
 (0)