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

Fix missing clarifying parenthesis cs check #547

Merged

Conversation

pattonwebz
Copy link
Member

@pattonwebz pattonwebz commented Mar 25, 2024

The latest WPCS update caused a new rule to run on our code to enforce clarifying parenthesis. That is a good rule so I fixed the issues flagged instead of disabling it.

I also took the opportunity to space out those changed conditions to improve readability while I was clarifying them with parenthesis.

Closes: #546

Error flagged is: Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence.MissingParentheses
@pattonwebz pattonwebz merged commit 3e1055a into develop Mar 25, 2024
16 checks passed
@pattonwebz pattonwebz deleted the william/546/fix-missing-clarifying-parenthesis-cs-check branch March 28, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WPCS v3.1.0 means a new rule runs on the code causing CS checks to fail
1 participant