Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-1
-
Fix Version/s: 1.3
-
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 '.*'