]> source.dussan.org Git - sonarqube.git/commitdiff
Fix some quality flaws
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 27 Jan 2014 23:04:48 +0000 (00:04 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 27 Jan 2014 23:05:14 +0000 (00:05 +0100)
plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/base/XooConstants.java [deleted file]
plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/base/XooRuleKeys.java [deleted file]
plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/rules/package-info.java [deleted file]
sonar-core/src/main/java/org/sonar/core/rule/CacheRuleFinder.java

diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/base/XooConstants.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/base/XooConstants.java
deleted file mode 100644 (file)
index 9cff3d6..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube 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.
- *
- * SonarQube 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 this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package org.sonar.plugins.xoo.base;
-
-public final class XooConstants {
-
-  public static final String LANGUAGE_KEY = "xoo";
-  public static final String PROFILE_KEY = "xoo";
-  public static final String REPOSITORY_KEY = "xoo";
-
-  private XooConstants() {
-    // Only constants
-  }
-}
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/base/XooRuleKeys.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/base/XooRuleKeys.java
deleted file mode 100644 (file)
index 688dfe1..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube 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.
- *
- * SonarQube 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 this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-package org.sonar.plugins.xoo.base;
-
-public class XooRuleKeys {
-
-  public static final String RULE_MINIMAL = "minimal";
-  public static final String RULE_WITH_PARAMS = "params";
-
-  public static final String RULE_WITH_TAGS1 = "tags1";
-  public static final String RULE_WITH_TAGS12 = "tags12";
-  public static final String RULE_WITH_TAGS123 = "tags123";
-  public static final String RULE_WITH_TAGS23 = "tags23";
-  public static final String RULE_WITH_TAGS34 = "tags34";
-
-  private XooRuleKeys() {
-    // Only constants
-  }
-}
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/rules/package-info.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/plugins/xoo/rules/package-info.java
deleted file mode 100644 (file)
index cfe9cb3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2013 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube 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.
- *
- * SonarQube 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 this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-@ParametersAreNonnullByDefault
-package org.sonar.plugins.xoo.rules;
-
-import javax.annotation.ParametersAreNonnullByDefault;
index a8c3a528127f42b8caa1793452124c8224e61163..595481e51e0c05c4dd38e5085b6c7c408653cd75 100644 (file)
@@ -24,7 +24,6 @@ import com.google.common.collect.HashBiMap;
 import com.google.common.collect.Maps;
 import org.sonar.api.rules.Rule;
 import org.sonar.api.rules.RuleQuery;
-import org.sonar.core.rule.DefaultRuleFinder;
 import org.sonar.jpa.session.DatabaseSessionFactory;
 
 import java.util.Map;