Skip to content

Explicitly say that CLI --exclude option disables only 3-part codes, entire sniffs, not 4-part ones #536

@arsel-5lvxa7b1

Description

@arsel-5lvxa7b1

Is your feature request related to a problem?

Hello, IDK if it's the right place for me to talk about this, but we use phpcs without ruleset.xml and couldn't figure out why a 4-part code exclude wasn't working. The error message only says about rule not being found.

Describe the solution you'd like

Explicitly say in wiki and in CLI help that --exclude option doesn't work with 4-part codes.

To be frank, our version of phpcs is quite old (3.4.0) so it may be fixed in newer versions, but I only could find about it from this comment in old repo:
squizlabs/PHP_CodeSniffer#1755 (comment)

This could save others time to find out why their exclude is not working.

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