diff options
author | Godin <mandrikov@gmail.com> | 2010-11-17 14:29:46 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-11-17 14:29:46 +0000 |
commit | c3e9146d9a690cda4a429ac8ab3e429a7fe6965f (patch) | |
tree | 215f511829bd16c2f711335f32fb0d989df3be43 /plugins/sonar-squid-java-plugin | |
parent | 4bc4786b0462b2dc4cbcbd0f555a58934d9fdc49 (diff) | |
download | sonarqube-c3e9146d9a690cda4a429ac8ab3e429a7fe6965f.tar.gz sonarqube-c3e9146d9a690cda4a429ac8ab3e429a7fe6965f.zip |
SONAR-1845, SONAR-1930, SONAR-1931: Add description to properties for new squid rules to workaround SONAR-1988
Diffstat (limited to 'plugins/sonar-squid-java-plugin')
3 files changed, 7 insertions, 7 deletions
diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/ClassComplexityCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/ClassComplexityCheck.java index b8518568836..4a724126561 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/ClassComplexityCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/ClassComplexityCheck.java @@ -20,8 +20,6 @@ package org.sonar.java.ast.check; -import java.util.List; - import org.sonar.check.IsoCategory; import org.sonar.check.Rule; import org.sonar.check.RuleProperty; @@ -33,10 +31,12 @@ import org.sonar.squid.measures.Metric; import com.puppycrawl.tools.checkstyle.api.DetailAST; +import java.util.List; + @Rule(key = "ClassComplexityCheck", name = "ClassComplexityCheck", isoCategory = IsoCategory.Maintainability) public class ClassComplexityCheck extends JavaAstCheck { - @RuleProperty + @RuleProperty(description = "Threshold.") private Integer threshold; @Override diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/MethodComplexityCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/MethodComplexityCheck.java index be39b24147a..425c1dc6d59 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/MethodComplexityCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/MethodComplexityCheck.java @@ -1,7 +1,5 @@ package org.sonar.java.ast.check; -import java.util.List; - import org.sonar.check.IsoCategory; import org.sonar.check.Rule; import org.sonar.check.RuleProperty; @@ -13,10 +11,12 @@ import org.sonar.squid.measures.Metric; import com.puppycrawl.tools.checkstyle.api.DetailAST; +import java.util.List; + @Rule(key = "MethodComplexityCheck", name = "MethodComplexityCheck", isoCategory = IsoCategory.Maintainability) public class MethodComplexityCheck extends JavaAstCheck { - @RuleProperty + @RuleProperty(description = "Threshold.") private Integer threshold; @Override diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/DITCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/DITCheck.java index 958f5ef4273..0dbe5e0bb7f 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/DITCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/DITCheck.java @@ -11,7 +11,7 @@ import org.sonar.squid.measures.Metric; @Rule(key = "DIT", name = "DIT", isoCategory = IsoCategory.Maintainability) public class DITCheck extends BytecodeCheck { - @RuleProperty + @RuleProperty(description = "Threshold.") private Integer threshold; @Override |