Skip to content

how to disable a single comarisonOperatorUsage #2238

Open
@adminfriso

Description

@adminfriso

Hello,
I am working on a custom sniff for my (shared) projects. I would lik to allow the T_BOOLEAN_NOT as valid operator on the Squiz.Operators.ComparisonOperatorUsage.NotAllowed rule.
right now the only way (I could find) to exclude this is to exclude the complete rule, but then you will also lose the other checks.

<rule ref="Squiz.Operators.ComparisonOperatorUsage">
    <exclude name="Squiz.Operators.ComparisonOperatorUsage.NotAllowed"/>
</rule>

is there a way to only exclude this single rule?

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