| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Chassis extension to install and configure PHP_CodeSniffer with WordPress Coding Standard Sniffs on your server.
This extension is handy so you can run precommit hooks with git that run phpcs tests on your Chassis box.
For instance you can add a file called precommit inside your .git/hooks folder with the following:
#!/bin/sh /usr/local/bin/vagrant ssh -- -t 'cd /vagrant/content/; grunt precommit;'
If your project has a precommit grunt task it will run those tests and only let you commit if those tests pass.
| Back | FazBrowse Home | New Git URL |