Closed vkaverin closed 2 months ago
Is your feature request related to a problem? Please describe.
Currently, it's forbidden to put multiple @paths for single rule. Rule like
@path
/** * @warning Do not use `foo()`! * * @path www/A/ * @path www/B/ */ foo();
will end up with duplicate @path constraint error.
duplicate @path constraint
So, to apply rule foo() for both www/A/ and www/B/ it's necessary to copy-paste the rule for them individually:
foo()
www/A/
www/B/
/** * @warning Do not use `foo()`! * * @path www/A/ */ foo(); /** * @warning Do not use `foo()`! * * @path www/B/ */ foo();
Describe the solution you'd like
Allow to specify @paths and merge them.
Is your feature request related to a problem? Please describe.
Currently, it's forbidden to put multiple
@path
s for single rule. Rule likewill end up with
duplicate @path constraint
error.So, to apply rule
foo()
for bothwww/A/
andwww/B/
it's necessary to copy-paste the rule for them individually:Describe the solution you'd like
Allow to specify
@path
s and merge them.