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

Use a more appropriate ruleset. #19

Merged
merged 1 commit into from
Mar 22, 2017
Merged

Use a more appropriate ruleset. #19

merged 1 commit into from
Mar 22, 2017

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Dec 23, 2016

Fixes #16


[Edit] The PR has been updated with a review of current extra rule inclusions/exclusions which are no longer needed if the main ruleset changes.

  • As the WordPress ruleset includes all WP sniffs, specific sniffs which were not in the VIP ruleset don't need to be included separately anymore.
  • As the WordPress ruleset includes the Docs ruleset, no need to include it separately. The related rule exclusions have been moved up to the main ruleset inclusion block (except for the scalar type hint one as that is no longer needed - see Remove a redundant exclusion. #22).
  • The GlobalVariables sniff was intended to be added, but commented out for bugs. As it will now be automatically included as the ruleset has changed, it will need to be explicitely excluded. The exclusion can be removed once WPCS 0.11.0 has been released which fixes all known bugs in that sniff. See Re-enable the WordPress.Variables.GlobalVariables sniff #20

@jrfnl
Copy link
Collaborator Author

jrfnl commented Jan 25, 2017

Rebased for merge conflicts

Note:
* As the WordPress ruleset includes all WP sniffs, specific sniffs which were not in the VIP ruleset don't need to be included separately anymore.
* As the WordPress ruleset includes the Docs ruleset, no need to include it separately. The related rule exclusions have been moved up to the main ruleset inclusion block (except for the scalar type hint one as that is no longer needed).
* The GlobalVariables sniff was intended to be added, but commented out for bugs. As it will now be automatically included as the ruleset has changed, it will need to be explicitely excluded. The exclusion can be removed once WPCS 0.11.0 has been released which fixes all known bugs in that sniff.
@atimmer atimmer merged commit c71bf90 into master Mar 22, 2017
@atimmer atimmer deleted the JRF/fix-ruleset branch March 22, 2017 08:48
@jrfnl jrfnl added this to the 0.4.x milestone Nov 3, 2017
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.

None yet

2 participants