aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/sonar-it-reference-plugin
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-24 10:55:26 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-24 10:55:26 +0000
commit7493f250f0a5acae18d5e865770e5f0b25507518 (patch)
tree2c8df73cab4291108e20ae461ff323b72d530a6d /tests/integration/sonar-it-reference-plugin
parent0ac4924c4ab8b774dc3fb7caa6a8926fec60d371 (diff)
downloadsonarqube-7493f250f0a5acae18d5e865770e5f0b25507518.tar.gz
sonarqube-7493f250f0a5acae18d5e865770e5f0b25507518.zip
revert SONAR-1988
Diffstat (limited to 'tests/integration/sonar-it-reference-plugin')
-rw-r--r--tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java2
-rw-r--r--tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/RuleWithoutDefinition.java27
-rw-r--r--tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/SampleRules.java44
3 files changed, 0 insertions, 73 deletions
diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java
index f416f5dcf7f..6df7c15befb 100644
--- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java
+++ b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/ITestsPlugin.java
@@ -24,7 +24,6 @@ import itests.languages.LanguageWithoutRulesEngine;
import itests.page.GwtSamplePage;
import itests.page.RubyApiTestsPage;
import itests.resourcetab.SampleResourceTab;
-import itests.rules.SampleRules;
import itests.ws.RubyWebService;
import org.sonar.api.Plugin;
@@ -51,7 +50,6 @@ public class ITestsPlugin implements Plugin {
extensions.add(SampleSensor.class);
extensions.add(LanguageWithoutRulesEngine.class);
extensions.add(ServerSideExtensionUsingExternalDependency.class);
- extensions.add(SampleRules.class);
// web
extensions.add(SampleResourceTab.class);
diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/RuleWithoutDefinition.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/RuleWithoutDefinition.java
deleted file mode 100644
index 44f00919cac..00000000000
--- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/RuleWithoutDefinition.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2009 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package itests.rules;
-
-import org.sonar.check.IsoCategory;
-import org.sonar.check.Rule;
-
-@Rule(key="no_description", name="No description", isoCategory = IsoCategory.Maintainability)
-public class RuleWithoutDefinition {
-}
diff --git a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/SampleRules.java b/tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/SampleRules.java
deleted file mode 100644
index 1e7f9d272f6..00000000000
--- a/tests/integration/sonar-it-reference-plugin/src/main/java/itests/rules/SampleRules.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2009 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package itests.rules;
-
-import org.sonar.api.resources.Java;
-import org.sonar.api.rules.AnnotationRuleParser;
-import org.sonar.api.rules.Rule;
-import org.sonar.api.rules.RuleRepository;
-
-import java.util.Arrays;
-import java.util.List;
-
-public class SampleRules extends RuleRepository {
-
- private AnnotationRuleParser ruleParser;
-
- public SampleRules(AnnotationRuleParser ruleParser) {
- super("it", Java.KEY);
- setName("Integration tests");
- this.ruleParser = ruleParser;
- }
-
- @Override
- public List<Rule> createRules() {
- return ruleParser.parse("it", Arrays.<Class>asList(RuleWithoutDefinition.class));
- }
-}