From 1d008fdd1b4c9f77df9de24d1991ecee54aed7a1 Mon Sep 17 00:00:00 2001 From: Oussama Date: Fri, 16 Dec 2022 21:19:04 +0100 Subject: [PATCH] Fix dependency --- java-plugin/pom.xml | 7 ++++++- php-plugin/pom.xml | 10 ++++++++++ php-plugin/src/main/java/fr/cnumr/php/MyPhpRules.java | 3 --- pom.xml | 8 +++++--- python-plugin/pom.xml | 3 --- .../l10n/python/rules/python/DefaultProfilePath.json | 3 +++ 6 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 python-plugin/src/main/resources/fr/cnumr/l10n/python/rules/python/DefaultProfilePath.json diff --git a/java-plugin/pom.xml b/java-plugin/pom.xml index 48c0fa7fb..e9eb695b6 100644 --- a/java-plugin/pom.xml +++ b/java-plugin/pom.xml @@ -27,6 +27,11 @@ sonar-plugin-api + + org.sonarsource.sonarqube + sonar-plugin-api-impl + + org.sonarsource.analyzer-commons sonar-analyzer-commons @@ -68,7 +73,7 @@ assertj-core test - + diff --git a/php-plugin/pom.xml b/php-plugin/pom.xml index fd2e31d33..6a96fee9b 100644 --- a/php-plugin/pom.xml +++ b/php-plugin/pom.xml @@ -26,6 +26,16 @@ sonar-plugin-api + + org.sonarsource.sonarqube + sonar-plugin-api-impl + + + + org.sonarsource.analyzer-commons + sonar-analyzer-commons + + junit junit diff --git a/php-plugin/src/main/java/fr/cnumr/php/MyPhpRules.java b/php-plugin/src/main/java/fr/cnumr/php/MyPhpRules.java index 62e42376e..3cc9785c2 100644 --- a/php-plugin/src/main/java/fr/cnumr/php/MyPhpRules.java +++ b/php-plugin/src/main/java/fr/cnumr/php/MyPhpRules.java @@ -20,15 +20,12 @@ package fr.cnumr.php; -import com.google.common.collect.ImmutableList; -import fr.cnumr.php.checks.*; import org.sonar.api.SonarEdition; import org.sonar.api.SonarQubeSide; import org.sonar.api.SonarRuntime; import org.sonar.api.internal.SonarRuntimeImpl; import org.sonar.api.server.rule.RulesDefinition; import org.sonar.api.utils.Version; -import org.sonar.plugins.php.api.visitors.PHPCustomRuleRepository; import org.sonarsource.analyzer.commons.RuleMetadataLoader; import java.util.ArrayList; import java.util.Collections; diff --git a/pom.xml b/pom.xml index 1b27df628..f27f99481 100644 --- a/pom.xml +++ b/pom.xml @@ -58,8 +58,8 @@ 3.9.0.9230 3.3.0.5166 1.20.0.405 - - 4.13.2 + + 4.13.2 5.9.1 3.23.1 @@ -80,12 +80,14 @@ org.sonarsource.analyzer-commons sonar-analyzer-commons ${sonar-analyzer-commons.version} + compile org.sonarsource.sonarqube sonar-plugin-api-impl ${sonar-plugin-api-impl.version} + compile @@ -190,9 +192,9 @@ + python-plugin java-plugin php-plugin - python-plugin diff --git a/python-plugin/pom.xml b/python-plugin/pom.xml index 7bf34f6f7..e3b9aa96b 100644 --- a/python-plugin/pom.xml +++ b/python-plugin/pom.xml @@ -26,13 +26,10 @@ org.sonarsource.sonarqube sonar-plugin-api - org.sonarsource.sonarqube sonar-plugin-api-impl - compile - org.sonarsource.analyzer-commons sonar-analyzer-commons diff --git a/python-plugin/src/main/resources/fr/cnumr/l10n/python/rules/python/DefaultProfilePath.json b/python-plugin/src/main/resources/fr/cnumr/l10n/python/rules/python/DefaultProfilePath.json new file mode 100644 index 000000000..c00983472 --- /dev/null +++ b/python-plugin/src/main/resources/fr/cnumr/l10n/python/rules/python/DefaultProfilePath.json @@ -0,0 +1,3 @@ +{ +"ruleKeys": ["S69"] +} \ No newline at end of file