@@ -134,6 +134,19 @@ public interface CoreProperties { | |||
String CORE_SKIPPED_MODULES_PROPERTY = "sonar.skippedModules"; | |||
String CORE_RULE_WEIGHTS_PROPERTY = "sonar.core.rule.weight"; | |||
String CORE_RULE_WEIGHTS_DEFAULT_VALUE = "INFO=0;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10"; | |||
/** | |||
* @deprecated since 3.6. See http://jira.codehaus.org/browse/SONAR-4145 | |||
*/ | |||
@Deprecated | |||
String CORE_TENDENCY_DEPTH_PROPERTY = "tendency.depth"; | |||
/** | |||
* @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-4145 | |||
*/ | |||
@Deprecated | |||
int CORE_TENDENCY_DEPTH_DEFAULT_VALUE = 30; | |||
String CORE_FORCE_AUTHENTICATION_PROPERTY = "sonar.forceAuthentication"; | |||
boolean CORE_FORCE_AUTHENTICATION_DEFAULT_VALUE = false; | |||
String CORE_ALLOW_USERS_TO_SIGNUP_PROPERTY = "sonar.allowUsersToSignUp"; | |||
@@ -146,6 +159,19 @@ public interface CoreProperties { | |||
String SERVER_VERSION = "sonar.core.version"; | |||
String SERVER_ID = "sonar.core.id"; | |||
String SERVER_STARTTIME = "sonar.core.startTime"; // format is yyyy-MM-dd'T'HH:mm:ssZ | |||
/** | |||
* @deprecated since 3.6. See http://jira.codehaus.org/browse/SONAR-4145 | |||
*/ | |||
@Deprecated | |||
String SKIP_TENDENCIES_PROPERTY = "sonar.skipTendencies"; | |||
/** | |||
* @deprecated since 3.6. See http://jira.codehaus.org/browse/SONAR-4145 | |||
*/ | |||
@Deprecated | |||
boolean SKIP_TENDENCIES_DEFAULT_VALUE = false; | |||
String BATCH_INCLUDE_PLUGINS = "sonar.includePlugins"; | |||
String BATCH_EXCLUDE_PLUGINS = "sonar.excludePlugins"; | |||
@@ -60,6 +60,7 @@ public class AverageFormula implements Formula { | |||
* Set a fallback metric if no measures found for the main metric. | |||
* | |||
* @param fallbackMetric The fallback metric | |||
* @since 3.6 | |||
*/ | |||
public AverageFormula setFallbackForMainMetric(Metric fallbackMetric) { | |||
this.fallbackMetric = fallbackMetric; |
@@ -284,7 +284,14 @@ public final class CoreMetrics { | |||
.setFormula(AverageFormula.create(CoreMetrics.COMPLEXITY, CoreMetrics.FILES)) | |||
.create(); | |||
/** | |||
* @since 3.6 | |||
*/ | |||
public static final String COMPLEXITY_IN_CLASSES_KEY = "complexity_in_classes"; | |||
/** | |||
* @since 3.6 | |||
*/ | |||
public static final Metric COMPLEXITY_IN_CLASSES = new Metric.Builder(COMPLEXITY_IN_CLASSES_KEY, "Complexity in classes", Metric.ValueType.INT) | |||
.setDescription("Cyclomatic complexity in classes") | |||
.setDirection(Metric.DIRECTION_WORST) | |||
@@ -302,7 +309,14 @@ public final class CoreMetrics { | |||
.setFormula(AverageFormula.create(CoreMetrics.COMPLEXITY_IN_CLASSES, CoreMetrics.CLASSES).setFallbackForMainMetric(CoreMetrics.COMPLEXITY)) | |||
.create(); | |||
/** | |||
* @since 3.6 | |||
*/ | |||
public static final String COMPLEXITY_IN_FUNCTIONS_KEY = "complexity_in_functions"; | |||
/** | |||
* @since 3.6 | |||
*/ | |||
public static final Metric COMPLEXITY_IN_FUNCTIONS = new Metric.Builder(COMPLEXITY_IN_FUNCTIONS_KEY, "Complexity in functions", Metric.ValueType.INT) | |||
.setDescription("Cyclomatic complexity in methods") | |||
.setDirection(Metric.DIRECTION_WORST) |
@@ -48,6 +48,9 @@ public interface PluginMetadata { | |||
String getHomepage(); | |||
/** | |||
* @since 3.6 | |||
*/ | |||
String getIssueTrackerUrl(); | |||
boolean isUseChildFirstClassLoader(); |