@@ -30,7 +30,7 @@ import org.sonar.api.batch.analyzer.measure.AnalyzerMeasure; | |||
import org.sonar.api.batch.debt.internal.DefaultDebtModel; | |||
import org.sonar.api.batch.rule.internal.ActiveRulesBuilder; | |||
import org.sonar.api.batch.rule.internal.RulesBuilder; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.batch.rule.QProfile; | |||
import org.sonar.api.measures.CoreMetrics; | |||
import org.sonar.api.measures.Metric; | |||
import org.sonar.api.measures.MetricFinder; |
@@ -25,7 +25,6 @@ import org.picocontainer.injectors.ProviderAdapter; | |||
import org.sonar.api.batch.rule.ActiveRules; | |||
import org.sonar.api.batch.rule.internal.ActiveRulesBuilder; | |||
import org.sonar.api.batch.rule.internal.NewActiveRule; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.rules.Rule; | |||
import org.sonar.api.rules.RuleFinder; | |||
import org.sonar.api.rules.RuleParam; |
@@ -21,7 +21,6 @@ package org.sonar.batch.rule; | |||
import org.sonar.batch.languages.Language; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import com.google.common.collect.ImmutableMap; | |||
import org.apache.commons.lang.StringUtils; | |||
import org.sonar.api.BatchComponent; |
@@ -25,7 +25,6 @@ import org.sonar.api.batch.DependsUpon; | |||
import org.sonar.api.batch.Event; | |||
import org.sonar.api.batch.TimeMachine; | |||
import org.sonar.api.batch.TimeMachineQuery; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.measures.CoreMetrics; | |||
import org.sonar.api.measures.Measure; | |||
import org.sonar.api.measures.Metric; |
@@ -22,7 +22,6 @@ package org.sonar.batch.rule; | |||
import org.sonar.api.batch.Sensor; | |||
import org.sonar.api.batch.SensorContext; | |||
import org.sonar.api.batch.fs.FileSystem; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.measures.CoreMetrics; | |||
import org.sonar.api.measures.Measure; | |||
import org.sonar.api.resources.Project; |
@@ -19,8 +19,6 @@ | |||
*/ | |||
package org.sonar.batch.rule; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import com.google.common.annotations.VisibleForTesting; | |||
import org.apache.commons.lang.StringUtils; | |||
import org.slf4j.Logger; |
@@ -19,8 +19,6 @@ | |||
*/ | |||
package org.sonar.batch.rule; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import com.google.common.collect.Lists; | |||
import org.apache.commons.lang.StringUtils; | |||
import org.picocontainer.injectors.ProviderAdapter; |
@@ -24,7 +24,6 @@ import com.google.gson.JsonArray; | |||
import com.google.gson.JsonElement; | |||
import com.google.gson.JsonObject; | |||
import com.google.gson.JsonParser; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.utils.text.JsonWriter; | |||
import javax.annotation.concurrent.Immutable; |
@@ -19,7 +19,7 @@ | |||
*/ | |||
package org.sonar.batch.rules; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.batch.rule.QProfile; | |||
import org.sonar.core.qualityprofile.db.QualityProfileDao; | |||
import org.sonar.core.qualityprofile.db.QualityProfileDto; | |||
@@ -19,7 +19,7 @@ | |||
*/ | |||
package org.sonar.batch.rules; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.batch.rule.QProfile; | |||
import org.sonar.api.BatchComponent; | |||
@@ -23,7 +23,6 @@ import org.junit.Before; | |||
import org.junit.Test; | |||
import org.sonar.api.batch.rule.ActiveRule; | |||
import org.sonar.api.batch.rule.ActiveRules; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.rule.RuleKey; | |||
import org.sonar.api.rule.Severity; | |||
import org.sonar.api.rules.Rule; |
@@ -21,7 +21,6 @@ package org.sonar.batch.rule; | |||
import com.google.common.collect.Lists; | |||
import org.junit.Test; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.config.Settings; | |||
import org.sonar.api.resources.Language; | |||
import org.sonar.api.resources.Languages; |
@@ -22,7 +22,6 @@ package org.sonar.batch.rule; | |||
import org.junit.Test; | |||
import org.sonar.api.batch.SensorContext; | |||
import org.sonar.api.batch.fs.internal.DefaultFileSystem; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.measures.CoreMetrics; | |||
import org.sonar.api.resources.Project; | |||
import org.sonar.api.test.IsMeasure; |
@@ -25,7 +25,6 @@ import org.junit.Test; | |||
import org.junit.rules.ExpectedException; | |||
import org.slf4j.Logger; | |||
import org.sonar.api.batch.fs.internal.DefaultFileSystem; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.sonar.api.config.Settings; | |||
import org.sonar.api.utils.MessageException; | |||
@@ -19,8 +19,6 @@ | |||
*/ | |||
package org.sonar.batch.rule; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import org.junit.Test; | |||
import org.sonar.api.batch.rule.ActiveRules; | |||
import org.sonar.api.config.Settings; |
@@ -20,7 +20,6 @@ | |||
package org.sonar.batch.rule; | |||
import org.junit.Test; | |||
import org.sonar.api.batch.rules.QProfile; | |||
import java.util.Arrays; | |||
import java.util.Map; |
@@ -1,72 +0,0 @@ | |||
/* | |||
* SonarQube, open source software quality management tool. | |||
* Copyright (C) 2008-2014 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.api.batch.rules; | |||
import com.google.common.base.Objects; | |||
public class QProfile { | |||
private final String key, name, language; | |||
public QProfile(String key, String name, String language) { | |||
this.key = key; | |||
this.name = name; | |||
this.language = language; | |||
} | |||
public String name() { | |||
return name; | |||
} | |||
public String language() { | |||
return language; | |||
} | |||
public String key() { | |||
return key; | |||
} | |||
@Override | |||
public boolean equals(Object o) { | |||
if (this == o) { | |||
return true; | |||
} | |||
if (o == null || getClass() != o.getClass()) { | |||
return false; | |||
} | |||
QProfile qProfile = (QProfile) o; | |||
return key.equals(qProfile.key); | |||
} | |||
@Override | |||
public int hashCode() { | |||
return key.hashCode(); | |||
} | |||
@Override | |||
public String toString() { | |||
return Objects.toStringHelper(this) | |||
.add("key", key) | |||
.add("name", name) | |||
.add("language", language) | |||
.toString(); | |||
} | |||
} |
@@ -1,21 +0,0 @@ | |||
/* | |||
* SonarQube, open source software quality management tool. | |||
* Copyright (C) 2008-2014 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. | |||
*/ | |||
@javax.annotation.ParametersAreNonnullByDefault | |||
package org.sonar.api.batch.rules; |