diff --git a/pom.xml b/pom.xml index 1723df1c..209e7297 100644 --- a/pom.xml +++ b/pom.xml @@ -1,431 +1,472 @@ - 4.0.0 + 4.0.0 - org.green-code-initiative - creedengo-rules-specifications - ${revision} + org.green-code-initiative + creedengo-rules-specifications + ${revision} - creedengo Rules Specifications repository - Repository that contains the specifications of every static-analysis rules available in creedengo plugins. - https://github.com/green-code-initiative/creedengo-rules-specifications + creedengo Rules Specifications repository + Repository that contains the specifications of every static-analysis rules available in creedengo plugins. + https://github.com/green-code-initiative/creedengo-rules-specifications - 2024 - - green-code-initiative - https://github.com/green-code-initiative - - - - GPL v3 - https://www.gnu.org/licenses/gpl-3.0.en.html - repo - - + 2024 + + green-code-initiative + https://github.com/green-code-initiative + + + + GPL v3 + https://www.gnu.org/licenses/gpl-3.0.en.html + repo + + - - - Gilles GROUSSET - zippy1978@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Maxime MALGORN - utarwyn@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Geoffrey LALLOUÉ - glalloue@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - David DE CARVALHO - dedece35@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Olivier LE GOAËR - olegoaer@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Julien HERTOUT - jhertout@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Jules DELECOUR - jules-delecour-dav@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Maxime DUBOIS - mdubois81@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Vianney DE BELLABRE - Djoums@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Jérôme CARDON - jay-79@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Justin BERQUE - JBerque@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Johanna DUIGOU - jduigoudev@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - - Jean-Yves CRONIER - jycr@users.noreply.github.com - green-code-initiative - https://github.com/green-code-initiative - - + + + Gilles GROUSSET + zippy1978@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Maxime MALGORN + utarwyn@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Geoffrey LALLOUÉ + glalloue@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + David DE CARVALHO + dedece35@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Olivier LE GOAËR + olegoaer@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Julien HERTOUT + jhertout@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Jules DELECOUR + jules-delecour-dav@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Maxime DUBOIS + mdubois81@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Vianney DE BELLABRE + Djoums@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Jérôme CARDON + jay-79@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Justin BERQUE + JBerque@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Johanna DUIGOU + jduigoudev@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + + Jean-Yves CRONIER + jycr@users.noreply.github.com + green-code-initiative + https://github.com/green-code-initiative + + - - scm:git:https://github.com/green-code-initiative/creedengo-rules-specifications - scm:git:https://github.com/green-code-initiative/creedengo-rules-specifications - https://github.com/green-code-initiative/creedengo-rules-specifications - HEAD - - - GitHub - https://github.com/green-code-initiative/creedengo-rules-specifications/issues - + + scm:git:https://github.com/green-code-initiative/creedengo-rules-specifications + scm:git:https://github.com/green-code-initiative/creedengo-rules-specifications + HEAD + https://github.com/green-code-initiative/creedengo-rules-specifications + + + GitHub + https://github.com/green-code-initiative/creedengo-rules-specifications/issues + - - - current-SNAPSHOT + current-SNAPSHOT - - - ${git.commit.timestamp.datetime} + + + ${git.commit.timestamp.datetime} - 11 - ${java.version} - ${java.version} + 11 + ${java.version} + ${java.version} - UTF-8 - ${encoding} - ${encoding} + UTF-8 + ${encoding} + ${encoding} - + - - - - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 5.0.0.4389 - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.5.0 - - - enforce-maven - - enforce - - - - - - 3.8.5 - - - - - - - - + + org.sonarsource.scanner.maven + sonar-maven-plugin + 5.0.0.4389 + + + + + + com.diffplug.spotless + spotless-maven-plugin + 2.43.0 + + + + pom.xml + + + + + + 1.23.0 + + + + + + src/**/*.json + + + JSON + + + + true + 2 + + + + + + + + check + + process-sources + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.5.0 + + + enforce-maven + + enforce + + + + + + 3.8.5 + + + + + + + + - org.asciidoctor - asciidoctor-maven-plugin - 3.1.1 - - - convert-to-html - generate-resources - - process-asciidoc - - - ${project.basedir}/src/main/rules - ${project.build.directory}/rules-html - - coderay - style - - true - true - false - true - - - ERROR - - - - - - - - - com.github.johnpoth - jshell-maven-plugin - 1.4 - - - jakarta.json - jakarta.json-api - 2.1.3 - - - org.glassfish - jakarta.json - 2.0.1 - module - - - - - prepare-rules-resources - generate-resources - - run - - - - - - - - - - - - - - - - org.apache.maven.plugins - maven-assembly-plugin - 3.7.1 - - - assembly-java - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/java.xml - - - - - assembly-php - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/php.xml - - - - - assembly-python - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/python.xml - - - - - assembly-javascript - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/javascript.xml - - - - - assembly-swift - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/swift.xml - - - - - assembly-xml - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/xml.xml - - - - - assembly-csharp - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/csharp.xml - - - - - assembly-html - prepare-package - - single - - - - ${project.basedir}/src/main/assembly/html.xml - - - - - - true - - - - - org.codehaus.mojo - properties-maven-plugin - 1.2.1 - - - initialize - - read-project-properties - - - - sonar-project.properties - - - - - - - + org.codehaus.mojo + properties-maven-plugin + 1.2.1 + + + + read-project-properties + + initialize + + + sonar-project.properties + + + + + + + - - - maven-central-publishing - - - - - org.apache.maven.plugins - maven-source-plugin - 3.3.1 - - - attach-sources - verify - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.11.2 - - - attach-javadoc - - jar - - - - - java - none - - - - - org.apache.maven.plugins - maven-gpg-plugin - 3.2.7 - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - - - - org.sonatype.central - central-publishing-maven-plugin - 0.6.0 - true - - central - true - true - - - - - - + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + + sign + + verify + + + --pinentry-mode + loopback + + + + + + + org.sonatype.central + central-publishing-maven-plugin + 0.6.0 + true + + central + true + true + + + + + + diff --git a/src/main/rules/GCI500/GCI500.json b/src/main/rules/GCI500/GCI500.json index 5495021e..e40b1fb0 100644 --- a/src/main/rules/GCI500/GCI500.json +++ b/src/main/rules/GCI500/GCI500.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI501/GCI501.json b/src/main/rules/GCI501/GCI501.json index b5e9996b..5567c259 100644 --- a/src/main/rules/GCI501/GCI501.json +++ b/src/main/rules/GCI501/GCI501.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI502/GCI502.json b/src/main/rules/GCI502/GCI502.json index a2f0a522..6668c2bf 100644 --- a/src/main/rules/GCI502/GCI502.json +++ b/src/main/rules/GCI502/GCI502.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.2", "defaultSeverity": "Critical" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI503/GCI503.json b/src/main/rules/GCI503/GCI503.json index a701f197..2f7a07a8 100644 --- a/src/main/rules/GCI503/GCI503.json +++ b/src/main/rules/GCI503/GCI503.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.6", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI505/GCI505.json b/src/main/rules/GCI505/GCI505.json index d73549bc..4cd0fb66 100644 --- a/src/main/rules/GCI505/GCI505.json +++ b/src/main/rules/GCI505/GCI505.json @@ -16,4 +16,4 @@ ], "ecoScore": "0.6", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI506/GCI506.json b/src/main/rules/GCI506/GCI506.json index 8731904d..d7922c89 100644 --- a/src/main/rules/GCI506/GCI506.json +++ b/src/main/rules/GCI506/GCI506.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.6", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI507/GCI507.json b/src/main/rules/GCI507/GCI507.json index 6e00ce62..d6aa8ceb 100644 --- a/src/main/rules/GCI507/GCI507.json +++ b/src/main/rules/GCI507/GCI507.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI508/GCI508.json b/src/main/rules/GCI508/GCI508.json index 21c9410c..2a99b6dc 100644 --- a/src/main/rules/GCI508/GCI508.json +++ b/src/main/rules/GCI508/GCI508.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI509/GCI509.json b/src/main/rules/GCI509/GCI509.json index 1023dad9..b517d64c 100644 --- a/src/main/rules/GCI509/GCI509.json +++ b/src/main/rules/GCI509/GCI509.json @@ -16,4 +16,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI510/GCI510.json b/src/main/rules/GCI510/GCI510.json index e28fe8f0..5e8ca38d 100644 --- a/src/main/rules/GCI510/GCI510.json +++ b/src/main/rules/GCI510/GCI510.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI511/GCI511.json b/src/main/rules/GCI511/GCI511.json index 6dfb9794..8fc7e2b3 100644 --- a/src/main/rules/GCI511/GCI511.json +++ b/src/main/rules/GCI511/GCI511.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI512/GCI512.json b/src/main/rules/GCI512/GCI512.json index 3a7cee4f..ac257e0a 100644 --- a/src/main/rules/GCI512/GCI512.json +++ b/src/main/rules/GCI512/GCI512.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.2", "defaultSeverity": "Critical" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI513/GCI513.json b/src/main/rules/GCI513/GCI513.json index bd1ec99f..dedd0655 100644 --- a/src/main/rules/GCI513/GCI513.json +++ b/src/main/rules/GCI513/GCI513.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.2", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI514/GCI514.json b/src/main/rules/GCI514/GCI514.json index f9066aad..7979b680 100644 --- a/src/main/rules/GCI514/GCI514.json +++ b/src/main/rules/GCI514/GCI514.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.2", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI515/GCI515.json b/src/main/rules/GCI515/GCI515.json index 59009c76..95c9e23c 100644 --- a/src/main/rules/GCI515/GCI515.json +++ b/src/main/rules/GCI515/GCI515.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI516/GCI516.json b/src/main/rules/GCI516/GCI516.json index d81ea5a6..e626a85c 100644 --- a/src/main/rules/GCI516/GCI516.json +++ b/src/main/rules/GCI516/GCI516.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI517/GCI517.json b/src/main/rules/GCI517/GCI517.json index 7f35c799..c63503ed 100644 --- a/src/main/rules/GCI517/GCI517.json +++ b/src/main/rules/GCI517/GCI517.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.6", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI518/GCI518.json b/src/main/rules/GCI518/GCI518.json index e88cb18d..8ab3d3ff 100644 --- a/src/main/rules/GCI518/GCI518.json +++ b/src/main/rules/GCI518/GCI518.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.6", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI519/GCI519.json b/src/main/rules/GCI519/GCI519.json index bee32ed8..365ecf55 100644 --- a/src/main/rules/GCI519/GCI519.json +++ b/src/main/rules/GCI519/GCI519.json @@ -16,4 +16,4 @@ ], "ecoScore": "1.0", "defaultSeverity": "Info" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI520/GCI520.json b/src/main/rules/GCI520/GCI520.json index 2b7fc0c4..e9699c6f 100644 --- a/src/main/rules/GCI520/GCI520.json +++ b/src/main/rules/GCI520/GCI520.json @@ -16,4 +16,4 @@ ], "ecoScore": "1.0", "defaultSeverity": "Info" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI521/GCI521.json b/src/main/rules/GCI521/GCI521.json index 119d034a..41d8a3fe 100644 --- a/src/main/rules/GCI521/GCI521.json +++ b/src/main/rules/GCI521/GCI521.json @@ -16,4 +16,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI525/GCI525.json b/src/main/rules/GCI525/GCI525.json index 8dd4ac7d..5db92f33 100644 --- a/src/main/rules/GCI525/GCI525.json +++ b/src/main/rules/GCI525/GCI525.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI526/GCI526.json b/src/main/rules/GCI526/GCI526.json index cbd42248..f66aeda3 100644 --- a/src/main/rules/GCI526/GCI526.json +++ b/src/main/rules/GCI526/GCI526.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI527/GCI527.json b/src/main/rules/GCI527/GCI527.json index c3e8c7b2..9829ed87 100644 --- a/src/main/rules/GCI527/GCI527.json +++ b/src/main/rules/GCI527/GCI527.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI528/GCI528.json b/src/main/rules/GCI528/GCI528.json index 67860320..5fb55015 100644 --- a/src/main/rules/GCI528/GCI528.json +++ b/src/main/rules/GCI528/GCI528.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI531/GCI531.json b/src/main/rules/GCI531/GCI531.json index 304dbdc1..aad239c4 100644 --- a/src/main/rules/GCI531/GCI531.json +++ b/src/main/rules/GCI531/GCI531.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI532/GCI532.json b/src/main/rules/GCI532/GCI532.json index 7709fb08..a837b97c 100644 --- a/src/main/rules/GCI532/GCI532.json +++ b/src/main/rules/GCI532/GCI532.json @@ -15,4 +15,4 @@ ], "ecoScore": "0.4", "defaultSeverity": "Minor" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI540/GCI540.json b/src/main/rules/GCI540/GCI540.json index 45cfa3e2..823d7d63 100644 --- a/src/main/rules/GCI540/GCI540.json +++ b/src/main/rules/GCI540/GCI540.json @@ -14,4 +14,4 @@ "eco-design" ], "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI543/GCI543.json b/src/main/rules/GCI543/GCI543.json index 61c33fca..7cb827bc 100644 --- a/src/main/rules/GCI543/GCI543.json +++ b/src/main/rules/GCI543/GCI543.json @@ -15,4 +15,4 @@ "eco-design" ], "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI544/GCI544.json b/src/main/rules/GCI544/GCI544.json index 13537dbe..20b303d0 100644 --- a/src/main/rules/GCI544/GCI544.json +++ b/src/main/rules/GCI544/GCI544.json @@ -14,4 +14,4 @@ "eco-design" ], "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI547/GCI547.json b/src/main/rules/GCI547/GCI547.json index 620df2dc..8a8c5629 100644 --- a/src/main/rules/GCI547/GCI547.json +++ b/src/main/rules/GCI547/GCI547.json @@ -15,4 +15,4 @@ "eco-design" ], "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI548/GCI548.json b/src/main/rules/GCI548/GCI548.json index 6949cf46..9e8182e6 100644 --- a/src/main/rules/GCI548/GCI548.json +++ b/src/main/rules/GCI548/GCI548.json @@ -14,4 +14,4 @@ "eco-design" ], "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI91/GCI91.json b/src/main/rules/GCI91/GCI91.json index 4bff7a4c..00f09ead 100644 --- a/src/main/rules/GCI91/GCI91.json +++ b/src/main/rules/GCI91/GCI91.json @@ -13,4 +13,4 @@ "bad-practice" ], "defaultSeverity": "Major" -} \ No newline at end of file +} diff --git a/src/main/rules/GCI92/GCI92.json b/src/main/rules/GCI92/GCI92.json index d675496e..19c780e2 100644 --- a/src/main/rules/GCI92/GCI92.json +++ b/src/main/rules/GCI92/GCI92.json @@ -1,16 +1,16 @@ { - "title": "Use string.Length instead of comparison with empty string", - "type": "CODE_SMELL", - "status": "ready", - "remediation": { - "func": "Constant\/Issue", - "constantCost": "5min" - }, - "tags": [ - "eco-design", - "creedengo", - "performance", - "bad-practice" - ], - "defaultSeverity": "Minor" -} \ No newline at end of file + "title": "Use string.Length instead of comparison with empty string", + "type": "CODE_SMELL", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "5min" + }, + "tags": [ + "eco-design", + "creedengo", + "performance", + "bad-practice" + ], + "defaultSeverity": "Minor" +}