Merged
Conversation
Member
|
@GaryJones would you be up to adding the needed fix in an additional commit? Both the PHPCBF automatic fixes, and the ignore for the eval uses. |
- Wrapper for PHPCompatibility - see https://github.com/PHPCompatibility/PHPCompatibilityWP
- Clarify that this is a custom ruleset, not a standard. - Add descriptive comments with URL references for further information - Move the scan arguments (How to scan) just above the rulesets and custom properties (also defines how to scan) - Adds `colors` arg for those operating systems that support it. - Remove reports, which should only be decided at runtime. Default report is full.
Mostly whitespace-only changes, with a couple of multi-lie function calls having parameters split over multiple lines.
- For PHPCS 3+, this will just ignore the `eval()` call. - For PHPCS 2.x, the whole line is ignore for all possible violations.
Contributor
Author
|
Done. Note, that this is only for If |
schlessera
approved these changes
Jul 31, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See individual commits for more info.
Self-note: WP-CLI is pinned to PHP 5.3.29, so it's PHP_Codesniffer 2.9.1 that is installed. As such
parallelandbasepathargs are not available.Note, that none of the newly reported violations have yet been fixed in this PR, but I can do if desired. 374 violations are auto-fixable (mostly whitespace), and two are the use of
eval(1, 2).Here's the source summary of violations: