]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16188 Deactivate common rules for SonarText
authorMatteo Mara <matteo.mara@sonarsource.com>
Mon, 28 Mar 2022 14:03:35 +0000 (16:03 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 29 Mar 2022 20:03:37 +0000 (20:03 +0000)
server/sonar-webserver-core/src/main/java/org/sonar/server/rule/CommonRuleDefinitionsImpl.java
server/sonar-webserver-core/src/test/java/org/sonar/server/rule/CommonRuleDefinitionsImplTest.java

index 54bc2740cfe3828a555bcaf105f2e5021d25496f..3716a0498f1bd05a9f8cb5dbfdcdc820b91534fa 100644 (file)
@@ -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");
+  private static final List<String> LANGUAGES_TO_SKIP = List.of("terraform", "cloudformation", "web", "css", "xml", "yaml", "json", "jsp", "text");
   private static final String MINUTES_10 = "10min";
 
   private final Languages languages;
index 51260b59759ba4ee6966b371793431e7444296bc..ab18b18f4c58fceb61da31f552225f237306ca6c 100644 (file)
@@ -62,7 +62,8 @@ public class CommonRuleDefinitionsImplTest {
       createLanguage("xml"),
       createLanguage("yaml"),
       createLanguage("json"),
-      createLanguage("jsp")
+      createLanguage("jsp"),
+      createLanguage("text")
     );
   }