Commit Graph

8 Commits

Author SHA1 Message Date
jrfnl e475309cd5 WPCS: Verify that no deprecated or removed WP functions are being used.
Ref: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#minimum-wp-version-to-check-for-usage-of-deprecated-functions-and-function-parameters
2017-06-17 17:08:58 +02:00
David A. Kennedy 1f9ad8893d Merge pull request #1122 from jrfnl/feature/wpcs-allow-theme-specific-filenames
WPCS: Allow for typical theme specific file names based on the theme hierarchy
2017-06-17 16:27:58 +02:00
jrfnl 755619e74d WPCS: Allow for typical theme specific file names based on the theme hierarchy.
Ref: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#themes-allow-filename-exceptions
2017-06-16 00:53:50 +02:00
jrfnl b560425ff1 PHPCS ruleset: add link to the PHPCompatibility repo.
At the top of the ruleset there were links to the PHPCS and the WPCS repo, but not to the PHPCompatibility repo which is also being used.
2017-06-16 00:48:12 +02:00
jrfnl bc9d5f742e Fix link to WPCS in the PHPCS ruleset.
The link was pointing to the `WordPress-Core` ruleset, while `_s` uses the `WordPress` ruleset which encompasses more than just the core rules.

Pointing to the repo + the wiki seems more appropriate to me.
2017-06-16 00:48:11 +02:00
David A. Kennedy 67d6d59235 Merge branch 'feature/rename-phpcs-ruleset' 2017-06-16 00:39:39 +02:00
jrfnl b78d053772 PHPCS: Move the recommended command line arguments into the custom ruleset. 2017-06-12 00:21:34 +02:00
jrfnl 0d353e1c0c Rename the PHPCS ruleset.
If the file is called `phpcs.xml` or `phpcs.xml.dist`, it is automatically picked up by PHPCS.

A `phpcs.xml` is given preference over a `phpcs.xml.dist` file. So renaming the file to `phpcs.xml.dist` allows for people to use the file provided by `_s` if they choose not to add their own, but also leaves people the freedom to easily overrule it.
2017-06-12 00:11:53 +02:00
Renamed from codesniffer.ruleset.xml (Browse further)