diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-04-04 12:21:23 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-04-05 20:02:38 +0000 |
commit | 93ac36f7642f2982bd81956d83db233a92f13eb2 (patch) | |
tree | 9cb1c4322586a95dc10b8f8b9762e676be406c05 /sonar-core/src | |
parent | 36aac658059ef9fea0698b9903e8ef4242e94b59 (diff) | |
download | sonarqube-93ac36f7642f2982bd81956d83db233a92f13eb2.tar.gz sonarqube-93ac36f7642f2982bd81956d83db233a92f13eb2.zip |
SONAR-13582 Drop 'Language specific parameters' setting
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/config/DebtProperties.java | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/DebtProperties.java b/sonar-core/src/main/java/org/sonar/core/config/DebtProperties.java index 46a88fe6d9e..26295713c48 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/DebtProperties.java +++ b/sonar-core/src/main/java/org/sonar/core/config/DebtProperties.java @@ -34,7 +34,7 @@ class DebtProperties { static List<PropertyDefinition> all() { return List.of( PropertyDefinition.builder(CoreProperties.DEVELOPMENT_COST) - .defaultValue("" + CoreProperties.DEVELOPMENT_COST_DEF_VALUE) + .defaultValue(CoreProperties.DEVELOPMENT_COST_DEF_VALUE) .name("Development cost") .description("Cost to develop one line of code (LOC). Example: if the cost to develop 1 LOC has been estimated " + "at 30 minutes, then the value of this property would be 30.") @@ -43,7 +43,7 @@ class DebtProperties { .build(), PropertyDefinition.builder(CoreProperties.RATING_GRID) - .defaultValue("" + CoreProperties.RATING_GRID_DEF_VALUES) + .defaultValue(CoreProperties.RATING_GRID_DEF_VALUES) .name("Maintainability rating grid") .description("Maintainability ratings range from A (very good) to E (very bad). The rating is determined by the value of " + "the Technical Debt Ratio, which compares the technical debt on a project to the cost it would take to rewrite " + @@ -52,24 +52,6 @@ class DebtProperties { "2,500 LOC will have a technical debt ratio of 24000/(30 * 2,500) = 0.32. That yields a maintainability rating of D.") .category(CoreProperties.CATEGORY_TECHNICAL_DEBT) .deprecatedKey("ratingGrid") - .build(), - - PropertyDefinition.builder(CoreProperties.LANGUAGE_SPECIFIC_PARAMETERS) - .name("Language specific parameters") - .description("DEPRECATED - The parameters specified here for a given language will override the general parameters defined in this section.") - .category(CoreProperties.CATEGORY_TECHNICAL_DEBT) - .deprecatedKey("languageSpecificParameters") - .fields( - PropertyFieldDefinition.build(CoreProperties.LANGUAGE_SPECIFIC_PARAMETERS_LANGUAGE_KEY) - .name("Language Key") - .description("Ex: java, cs, cpp...") - .type(PropertyType.STRING) - .build(), - PropertyFieldDefinition.build(CoreProperties.LANGUAGE_SPECIFIC_PARAMETERS_MAN_DAYS_KEY) - .name("Development cost") - .description("If left blank, the generic value defined in this section will be used.") - .type(PropertyType.FLOAT) - .build()) .build()); } } |