From 3a2d0c38f6e3f19f1e44da09a9a028d9b93143f3 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 12 Feb 2014 14:44:48 +0100 Subject: SONAR-4908 support tags in sonar-check-api and in standard XML format --- sonar-check-api/src/main/java/org/sonar/check/Rule.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sonar-check-api/src/main/java/org/sonar') 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 5da530f5aa8..250cb5b51d4 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 @@ -42,12 +42,12 @@ public @interface Rule { String name() default ""; /** - * The description, optional. + * HTML description */ String description() default ""; /** - * Default priority. + * Default severity used when activating the rule in a Quality profile. */ Priority priority() default Priority.MAJOR; @@ -58,4 +58,10 @@ public @interface Rule { * @since 3.6 */ String status() default "READY"; + + /** + * Rule tags + * @since 4.2 + */ + String[] tags() default {}; } -- cgit v1.2.3