diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2022-11-28 14:30:01 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-28 20:03:01 +0000 |
commit | de64d6810ada66b31f205bbe21e1498cd9700fed (patch) | |
tree | da051c3cd8d004e20d494122d441810534f279ea /server/sonar-webserver-core | |
parent | 4dd0e3c2a84b4fa32dcefeb6971ccbbafe451230 (diff) | |
download | sonarqube-de64d6810ada66b31f205bbe21e1498cd9700fed.tar.gz sonarqube-de64d6810ada66b31f205bbe21e1498cd9700fed.zip |
SONAR-17690 SONAR-17692 Deactivate common rules for the Kubernetes and Docker language
Diffstat (limited to 'server/sonar-webserver-core')
2 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/CommonRuleDefinitionsImpl.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/CommonRuleDefinitionsImpl.java index 3716a0498f1..0252e427872 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/CommonRuleDefinitionsImpl.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/rule/CommonRuleDefinitionsImpl.java @@ -40,7 +40,7 @@ import static org.sonar.server.rule.CommonRuleKeys.commonRepositoryForLang; // It replaces the common-rules that are still embedded within plugins. public class CommonRuleDefinitionsImpl implements CommonRuleDefinitions { - private static final List<String> LANGUAGES_TO_SKIP = List.of("terraform", "cloudformation", "web", "css", "xml", "yaml", "json", "jsp", "text"); + private static final List<String> LANGUAGES_TO_SKIP = List.of("terraform", "cloudformation", "kubernetes", "docker", "web", "css", "xml", "yaml", "json", "jsp", "text"); private static final String MINUTES_10 = "10min"; private final Languages languages; diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/CommonRuleDefinitionsImplTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/CommonRuleDefinitionsImplTest.java index ab18b18f4c5..1e07ffb6374 100644 --- a/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/CommonRuleDefinitionsImplTest.java +++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/CommonRuleDefinitionsImplTest.java @@ -57,6 +57,8 @@ public class CommonRuleDefinitionsImplTest { createLanguage("js"), createLanguage("terraform"), createLanguage("cloudformation"), + createLanguage("kubernetes"), + createLanguage("docker"), createLanguage("web"), createLanguage("css"), createLanguage("xml"), |