diff --git a/java-plugin/pom.xml b/java-plugin/pom.xml index 49c99e88e..9daece94e 100644 --- a/java-plugin/pom.xml +++ b/java-plugin/pom.xml @@ -44,12 +44,6 @@ 3.11 - - com.google.guava - guava - 31.0.1-jre - - com.google.re2j @@ -89,10 +83,6 @@ fr.greencodeinitiative.java.JavaPlugin true ${sonarqube.version} - - - - java ${java.version} diff --git a/javascript-plugin/pom.xml b/javascript-plugin/pom.xml index 56c1b52d6..f7d53dc99 100644 --- a/javascript-plugin/pom.xml +++ b/javascript-plugin/pom.xml @@ -64,7 +64,6 @@ fr.greencodeinitiative.javascript.JavaScriptPlugin true ${sonarqube.version} - javascript ${java.version} diff --git a/php-plugin/pom.xml b/php-plugin/pom.xml index 1cef01679..46492ca2c 100644 --- a/php-plugin/pom.xml +++ b/php-plugin/pom.xml @@ -59,9 +59,7 @@ fr.greencodeinitiative.php.PHPPlugin true ${sonarqube.version} - php ${java.version} - php:${sonarphp.version} ${sonarqube.version} ${java.version} diff --git a/php-plugin/src/main/java/fr/greencodeinitiative/php/PhpRuleRepository.java b/php-plugin/src/main/java/fr/greencodeinitiative/php/PhpRuleRepository.java index bebb9e605..91d307a7e 100644 --- a/php-plugin/src/main/java/fr/greencodeinitiative/php/PhpRuleRepository.java +++ b/php-plugin/src/main/java/fr/greencodeinitiative/php/PhpRuleRepository.java @@ -24,12 +24,10 @@ import java.io.InputStream; import java.net.URL; import java.nio.charset.StandardCharsets; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import com.google.common.collect.ImmutableList; import fr.greencodeinitiative.php.checks.AvoidDoubleQuoteCheck; import fr.greencodeinitiative.php.checks.AvoidFullSQLRequestCheck; import fr.greencodeinitiative.php.checks.AvoidSQLRequestInLoopCheck; @@ -90,7 +88,7 @@ public String repositoryKey() { @Override public List> checkClasses() { - return ImmutableList.of( + return List.of( AvoidDoubleQuoteCheck.class, AvoidFullSQLRequestCheck.class, AvoidSQLRequestInLoopCheck.class, diff --git a/python-plugin/pom.xml b/python-plugin/pom.xml index 9529ebc29..cdfa76710 100644 --- a/python-plugin/pom.xml +++ b/python-plugin/pom.xml @@ -57,7 +57,6 @@ ${project.name} fr.greencodeinitiative.python.PythonPlugin true - python:${sonarpython.version} ${sonarqube.version} ${java.version}