You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to use path_patterns to filter out folders in a maintainability check?
I would like to skip a specific check for a specific folder. Note that I do not want to skip this directory for any other checks.
I'm trying to use a path pattern like below to skip all the foo directory but this skips all the directories.
path_patterns:
- "src/**[!foo]/*[!test].js"
path_patterns:
- "src/**/!(foo)/*[!test].js
The text was updated successfully, but these errors were encountered:
Ruby's glob doesn't support the negation pattern you're using, unfortunately. But you may be able to devise a pattern that would match what you're after using reg-ex style [^foo] matchers? I linked to Ruby's docs for their globbing above, you can read those to see if you you can devise a pattern that works for you.
Aside from that, sorry, there is not currently support for this level of exclusion. If there aren't that many folders you're working with, and you can't get a [^foo] pattern to do what you want, you could list several patterns for the different folders you do want to scan.
Hi,
Is there a way to use
path_patterns
to filter out folders in a maintainability check?I would like to skip a specific check for a specific folder. Note that I do not want to skip this directory for any other checks.
I'm trying to use a path pattern like below to skip all the
foo
directory but this skips all the directories.The text was updated successfully, but these errors were encountered: