noverify icon indicating copy to clipboard operation
noverify copied to clipboard

Multiple `@path` directives

Open vkaverin opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Currently, it's forbidden to put multiple @paths for single rule. Rule like

/**
  * @warning Do not use `foo()`!
  * 
  * @path www/A/
  * @path www/B/
  */
foo();

will end up with duplicate @path constraint error.

So, to apply rule foo() for both www/A/ and www/B/ it's necessary to copy-paste the rule for them individually:

/**
  * @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.

vkaverin avatar Jan 23 '23 11:01 vkaverin