001 /*
002 * Sonar, open source software quality management tool.
003 * Copyright (C) 2009 SonarSource SA
004 * mailto:contact AT sonarsource DOT com
005 *
006 * Sonar is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 3 of the License, or (at your option) any later version.
010 *
011 * Sonar is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014 * Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public
017 * License along with Sonar; if not, write to the Free Software
018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
019 */
020 package org.sonar.api;
021
022 /**
023 * @since 1.11
024 */
025 public interface CoreProperties {
026
027 /* Global settings */
028 String PROJECT_BRANCH_PROPERTY = "sonar.branch";
029 String PROJECT_VERSION_PROPERTY = "sonar.projectVersion";
030
031 /**
032 * Value format is yyyy-MM-dd
033 */
034 String PROJECT_DATE_PROPERTY = "sonar.projectDate";
035 String PROJECT_LANGUAGE_PROPERTY = "sonar.language";
036 String DYNAMIC_ANALYSIS_PROPERTY = "sonar.dynamicAnalysis";
037 String PROJECT_EXCLUSIONS_PROPERTY = "sonar.exclusions";
038 String REUSE_RULES_CONFIGURATION_PROPERTY = "sonar.reuseExistingRulesConfiguration";
039
040
041 /* Checkstyle */
042 String CHECKSTYLE_PLUGIN = "checkstyle";
043
044 /* Cobertura */
045 String COBERTURA_PLUGIN = "cobertura";
046 String COBERTURA_REPORT_PATH_PROPERTY = "sonar.cobertura.reportPath";
047
048 /* Sonar Core */
049 String CORE_PLUGIN = "core";
050 String CORE_COVERAGE_PLUGIN_PROPERTY = "sonar.core.codeCoveragePlugin";
051 String CORE_IMPORT_SOURCES_PROPERTY = "sonar.importSources";
052 boolean CORE_IMPORT_SOURCES_DEFAULT_VALUE = true;
053 String CORE_SKIPPED_MODULES_PROPERTY = "sonar.skippedModules";
054 String CORE_RULE_WEIGHTS_PROPERTY = "sonar.core.rule.weight";
055 String CORE_RULE_WEIGHTS_DEFAULT_VALUE = "INFO=0;MINOR=1;MAJOR=3;CRITICAL=5;BLOCKER=10";
056 String CORE_TENDENCY_DEPTH_PROPERTY = "tendency.depth";
057 int CORE_TENDENCY_DEPTH_DEFAULT_VALUE = 30;
058
059 /* CPD */
060 String CPD_PLUGIN = "cpd";
061 String CPD_MINIMUM_TOKENS_PROPERTY = "sonar.cpd.minimumTokens";
062 int CPD_MINIMUM_TOKENS_DEFAULT_VALUE = 100;
063
064 /* Findbugs */
065 String FINDBUGS_PLUGIN = "findbugs";
066 String FINDBUGS_EFFORT_PROPERTY = "sonar.findbugs.effort";
067 String FINDBUGS_EFFORT_DEFAULT_VALUE = "Default";
068
069 /* Google Analytics */
070 String GOOGLE_ANALYTICS_PLUGIN = "google-analytics";
071 String GOOGLE_ANALYTICS_ACCOUNT_PROPERTY = "sonar.google-analytics.account";
072
073 /* PMD */
074 String PMD_PLUGIN = "pmd";
075
076 /* Squid */
077 String SQUID_PLUGIN = "squid";
078 String SQUID_ANALYSE_ACCESSORS_PROPERTY = "sonar.squid.analyse.property.accessors";
079 boolean SQUID_ANALYSE_ACCESSORS_DEFAULT_VALUE = true;
080
081 /* Surefire */
082 String SUREFIRE_PLUGIN = "surefire";
083 String SUREFIRE_REPORTS_PATH_PROPERTY = "sonar.surefire.reportsPath";
084 }