aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid/src
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-11-14 02:51:28 +0000
committerGodin <mandrikov@gmail.com>2010-11-14 02:51:28 +0000
commite410437db4ad779e779619ac3bea979c079b4e00 (patch)
treedd325f124a77eaa9515994f64075d04308fd015b /sonar-squid/src
parent9a3d8a9e30a835d9ff37b45f15b2e818d17d0b75 (diff)
downloadsonarqube-e410437db4ad779e779619ac3bea979c079b4e00.tar.gz
sonarqube-e410437db4ad779e779619ac3bea979c079b4e00.zip
SONAR-1845: Create a new Sonar rule to check method complexity
Diffstat (limited to 'sonar-squid/src')
-rw-r--r--sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java b/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java
index 425b26af8be..e9caeb3e2af 100644
--- a/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java
+++ b/sonar-squid/src/main/java/org/sonar/squid/api/CheckMessage.java
@@ -28,6 +28,7 @@ import org.sonar.check.Message;
public class CheckMessage implements Message {
private Integer line;
+ private Double cost;
private SourceCode sourceCode;
private CodeCheck codeCheck;
private String defaultMessage;
@@ -55,6 +56,14 @@ public class CheckMessage implements Message {
return line;
}
+ public void setCost(double cost) {
+ this.cost = cost;
+ }
+
+ public Double getCost() {
+ return cost;
+ }
+
public CodeCheck getChecker() {
return codeCheck;
}