aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-check-api/src/main/java
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-10-11 14:47:13 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-10-11 14:47:13 +0000
commit8c8007b2c9ebe8aa5b5a2fac0d9955e2cbead304 (patch)
treecf57927057addb51b707759d35816c68353e9d6c /sonar-check-api/src/main/java
parentf561c79fce592354824d1db303a22fe4cd3a0277 (diff)
downloadsonarqube-8c8007b2c9ebe8aa5b5a2fac0d9955e2cbead304.tar.gz
sonarqube-8c8007b2c9ebe8aa5b5a2fac0d9955e2cbead304.zip
rule API: add the field 'cardinality' to the annotation @org.sonar.check.Rule
Diffstat (limited to 'sonar-check-api/src/main/java')
-rw-r--r--sonar-check-api/src/main/java/org/sonar/check/Rule.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/sonar-check-api/src/main/java/org/sonar/check/Rule.java b/sonar-check-api/src/main/java/org/sonar/check/Rule.java
index 2b072ccbfa0..8c49e303add 100644
--- a/sonar-check-api/src/main/java/org/sonar/check/Rule.java
+++ b/sonar-check-api/src/main/java/org/sonar/check/Rule.java
@@ -55,4 +55,10 @@ public @interface Rule {
* Will probably be deprecated and replaced by tags
*/
IsoCategory isoCategory();
+
+ CARDINALITY cardinality() default CARDINALITY.SINGLE;
+
+ public static enum CARDINALITY {
+ SINGLE, MULTIPLE
+ }
}