Wp Enforcer Versions Save

Git hooks to encourage well-written WordPress.

v0.5.0

6 years ago
  • Allow any version of wp-coding-standards/wpcs, avoiding conflicts with packages that use older versions (#37).
  • Clarify placement of scripts within composer.json (#41).
  • Exclude phpcs.xml from being checked by PHP_CodeSniffer (#27).

v0.4.2

7 years ago
  • Don't lock wp-coding-standards/wpcs to a single version.
  • Remove the explicit package version in composer.json, add GitHub URLs.

v0.4.1

8 years ago
  • Apply a --diff-filter in the pre-commit hook to ensure PHP_CodeSniffer doesn't attempt to tokenize files that have been deleted (#29). Props @JoeyBlake.

v0.4.0

8 years ago
  • Restore explicit reference to vendor/bin (previously removed in #3) within the pre-commit Git hook (#11). Props @leewillis77.
  • Added --help and --version options to the wp-enforcer command for easier usage (and setting us up for more fun options in the future, #8). Props @daveross.
  • Fixed major bug wherein PHP_CodeSniffer was complaining about files not containing any code (#12).
  • Added a --vip option to the wp-enforcer command to use WordPress.com VIP coding standards (#7). Props @daveross.
  • Moved the Change Log out of the README and into CHANGELOG.md (#19).

v0.1.0

8 years ago

Initial public release of WP Enforcer.

v0.2.0

8 years ago
  • Restrict the Git hook to only changed files, not the entire codebase (#1).
  • Confirmed Windows Compatibility (as Git Bash ships with a version of Cygwin for all the Unix-y goodness needed). Props @EricMann (#2).

v0.3.0

8 years ago
  • Remove explicit references to ./vendor/bin/, as Composer automatically prepends this directory to the user's path (#3). Props @johnpbloch, @bswatson.
  • Automatically create a .git/hooks directory if it doesn't already exist (#5).