-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add MixedBooleanOperatorSniff #3205
Conversation
99a0f16
to
7b2ed42
Compare
I was going through the list of my open PRs: I'm seeing that this PR was assigned to a project / to the idea bank. How will this process further? I don't plan on making any more changes, unless you see issues during review. |
Sorry this hasn't moved. I've been prioritising bug fixes and support for newer PHP versions so I haven't looked into this yet. |
This comment has been minimized.
This comment has been minimized.
7b2ed42
to
136509f
Compare
136509f
to
ce61077
Compare
ce61077
to
22cf1f7
Compare
This comment was marked as outdated.
This comment was marked as outdated.
22cf1f7
to
5ed8231
Compare
5ed8231
to
efd252b
Compare
efd252b
to
1036366
Compare
38061b2
to
d5292ed
Compare
d5292ed
to
a2d3504
Compare
FYI: this new sniff is included in today's PHP_CodeSniffer 3.9.0 release. As per #3932, development on PHP_CodeSniffer will continue in the PHPCSStandards/PHP_CodeSniffer repository. If you want to stay informed, you may want to start "watching" that repo (or watching releases from that repo). |
Hi 👋
This is my first contribution to PHP CodeSniffer. This PR adds a sniff that detects mixed boolean operators (
&&
,||
) within a single expression without making precedence clear using parentheses.I hope I did not miss an existing sniff that already does what I want this sniff to do. Please also let me know if I violated any written or unwritten rules regarding the namespace structure, code formatting, commit messages, etc or if you think I missed some edge case within my unit test.