From 1a0d00659736c083afa6eae1f08c6ee3ea6f6752 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Thu, 4 Oct 2012 18:54:51 +0200 Subject: SONAR-3819 Use the "options" parameter on @Property to filter metrics --- sonar-plugin-api/src/main/java/org/sonar/api/Property.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sonar-plugin-api') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/Property.java b/sonar-plugin-api/src/main/java/org/sonar/api/Property.java index 3d85cfb46f0..b0179ceedf3 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/Property.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/Property.java @@ -88,7 +88,15 @@ public @interface Property { /** * Options for *_LIST types * - * @since 3.0 + * @since 3.0 Options for property of type PropertyType.SINGLE_SELECT_LIST + * + * @since 3.3 Options for property of type PropertyType.METRIC. + * If no option is specified, any metric will match. + * If options are specified, all must match for the metric to be displayed. + * Three types of filter are supported key:REGEXP, domain:REGEXP and type:comma_separated__list_of_types. + * For example key:new_.* will match any metric which key starts by new_. + * For example type:INT,FLOAT will match any metric of type INT or FLOAT. + * For example type:NUMERIC will match any metric of numerictype. */ String[] options() default {}; -- cgit v1.2.3