Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0-beta-1
-
Fix Version/s: None
-
Component/s: Standard Rules
-
Labels:None
-
Number of attachments :
Description
The includes and excludes of the bannedDependencies rule support wildcards, but only for an entire section.
They should be enhanced to support regular expressions.
For instance instead of having
<includes>
<include>my.company:abc-api</include>
<include>my.company:def-api</include>
<include>my.company:ghi-api</include>
<include>my.company:jkl-api</include>
</includes>
one would specify
<includes>
<include>my.company:.*-api</include>
</includes>
To be compatible, the wildcard '' would be treated as regular expression '.'
Sorry, I wasn't aware of the syntax in JIRA.
The last sentence should read
To be compatible, the wildcard * would be treated as regular expression .*