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

Restrict hook to the changed files #1

Closed
stevegrunwell opened this issue Nov 23, 2015 · 0 comments
Closed

Restrict hook to the changed files #1

stevegrunwell opened this issue Nov 23, 2015 · 0 comments
Milestone

Comments

@stevegrunwell
Copy link
Owner

Good recommendation from @bswatson:

When the Git hook runs it should only be run on files that have changed. This will reduce friction when implementing into an existing codebase as a file won't get checked (or at least not flagged) until something inside it has changed. Developers can still run ./vendor/bin/phpcs to scan the entire codebase, but this fix will make WP Enforcer much less of a "get everything in order before this is useful" tool.

@stevegrunwell stevegrunwell added this to the 0.2.0 milestone Nov 23, 2015
stevegrunwell pushed a commit that referenced this issue Apr 13, 2017
Updated readme to explain PHP CodeSniffer Autofix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant