diff options
author | David Gageot <david@gageot.net> | 2012-10-04 18:54:51 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-10-04 19:16:34 +0200 |
commit | 1a0d00659736c083afa6eae1f08c6ee3ea6f6752 (patch) | |
tree | 56dd84e9702c513e1579d56db18ce6dca957f1dc /sonar-plugin-api | |
parent | 2b3d944acfbfa405ead9b7420447730f40f65393 (diff) | |
download | sonarqube-1a0d00659736c083afa6eae1f08c6ee3ea6f6752.tar.gz sonarqube-1a0d00659736c083afa6eae1f08c6ee3ea6f6752.zip |
SONAR-3819 Use the "options" parameter on @Property to filter metrics
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/Property.java | 10 |
1 files changed, 9 insertions, 1 deletions
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</code> + * + * @since 3.3 Options for property of type PropertyType.METRIC</code>. + * 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 <code>key:REGEXP</code>, <code>domain:REGEXP</code> and <code>type:comma_separated__list_of_types</code>. + * For example <code>key:new_.*</code> will match any metric which key starts by <code>new_</code>. + * For example <code>type:INT,FLOAT</code> will match any metric of type <code>INT</code> or <code>FLOAT</code>. + * For example <code>type:NUMERIC</code> will match any metric of numerictype. */ String[] options() default {}; |