Skip to content

[Feature Request]: Enforce no space after negation operator #92

@antonioeatgoat

Description

@antonioeatgoat

Is your feature request related to a problem?

At the current moment, we don't have any specific rule for spaces after the negation operator.

This means that the following cases are both accepted:

  • !$test
  • ! $test

Describe the desired solution

No space should be enforced.

For the implementation, it is possible to use the existing SlevomatCodingStandard.Operators.NegationOperatorSpacing, which allows to configure the number of expected spaces.

Describe the alternatives that you have considered

Either having the space or not, but not both cases accepted.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions