Skip to content

Can include-pattern be made to work at the ruleset level? #2649

Open
@adrienne

Description

@adrienne

As it is, it's tricky to debug certain codebase structures. In my case, i have the following:

/app   <-- should be checked
/vendor
   /foo    <-- should NOT be checked
   /bar    <-- should NOT be checked
   /baz    <-- should NOT be checked
   /mypackage   <-- SHOULD be checked
   /quux   <-- should NOT be checked

What I'd really like to be able to do is something like this:

<ruleset>
    <exclude-pattern>/vendor/*</exclude-pattern>
    <include-pattern>/vendor/mypackage/*</include-pattern>

    …
</ruleset>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions