-
Notifications
You must be signed in to change notification settings - Fork 427
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 Scrutinizer config file #330
Conversation
Is there anything we can do about the 'else on same line as brace from previous if' ? It's not part of the official WPCS and having it on the next line make for easier to read code. |
It should be
are not correct. |
Just read through it again and no, it does not say that. All it says is that braces should be used (rightfully so), not whether the else should be on the same or the next line. |
@jrfnl IMO having
|
It does say that: "Braces shall be used for all blocks in the style shown here". All the examples on that page use it, and most, if not all instances in WP core use it. It may not explicitly say "Put the |
@GaryJones Darn, did I really read over that bit ? Ok, never mind, the standard it is. Just weirdly inconsistent with the rest of the standard (less whitespace while most of the standard goes for more whitespace). @shivapoudel I didn't say anything about looking 'pretty/good'. My point was about ease of readability. |
@GaryJones oh and are you happy with the resulting scrutinizer behaviour the way it is now ? I.e. can I merge ? |
Merge as is please - we can pick up issues about code style or other config tweaks later on. |
https://scrutinizer-ci.com
Tested against a fork of this repo (resulting suggestions to be applied later on) so will work when this repo is hooked up too.