diff options
author | Godin <mandrikov@gmail.com> | 2010-11-14 02:51:28 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-11-14 02:51:28 +0000 |
commit | e410437db4ad779e779619ac3bea979c079b4e00 (patch) | |
tree | dd325f124a77eaa9515994f64075d04308fd015b /sonar-squid/src | |
parent | 9a3d8a9e30a835d9ff37b45f15b2e818d17d0b75 (diff) | |
download | sonarqube-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.java | 9 |
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; } |