diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-11 12:14:57 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-11 12:14:57 +0100 |
commit | 94c5097a927988dc43d47b95f5963c3d8e1a06a3 (patch) | |
tree | a453d2dfac4e8a8ccb5a17afabb2a39921001594 /sonar-check-api/src/main/java/org/sonar | |
parent | 887511087786db6ad4e338ec31822fd21bd39848 (diff) | |
download | sonarqube-94c5097a927988dc43d47b95f5963c3d8e1a06a3.tar.gz sonarqube-94c5097a927988dc43d47b95f5963c3d8e1a06a3.zip |
SONAR-4170 Add language property on rule in order to track removed rules from removed plugin
Diffstat (limited to 'sonar-check-api/src/main/java/org/sonar')
-rw-r--r-- | sonar-check-api/src/main/java/org/sonar/check/Rule.java | 2 | ||||
-rw-r--r-- | sonar-check-api/src/main/java/org/sonar/check/Status.java | 6 |
2 files changed, 6 insertions, 2 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 3c92139c720..8ed70868ed4 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 @@ -65,5 +65,5 @@ public @interface Rule { * The rule status. Can be Normal, Beta or Deprecated * @since 3.6 */ - Status status() default Status.NORMAL; + Status status() default Status.READY; } diff --git a/sonar-check-api/src/main/java/org/sonar/check/Status.java b/sonar-check-api/src/main/java/org/sonar/check/Status.java index e8a1fd159ee..aa5d7e22506 100644 --- a/sonar-check-api/src/main/java/org/sonar/check/Status.java +++ b/sonar-check-api/src/main/java/org/sonar/check/Status.java @@ -24,5 +24,9 @@ package org.sonar.check; * @since 3.6 */ public enum Status { - NORMAL, BETA, DEPRECATED + READY, BETA, DEPRECATED; + + public static Status defaultValue() { + return Status.READY; + } } |