Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
antonioeatgoat opened this issue Apr 22, 2024 · 0 comments · Fixed by #93
Closed
1 task done

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

antonioeatgoat opened this issue Apr 22, 2024 · 0 comments · Fixed by #93
Milestone

Comments

@antonioeatgoat
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant