Skip to content

Commit

Permalink
Merge 580b001 into 43184b1
Browse files Browse the repository at this point in the history
  • Loading branch information
chronon committed Oct 4, 2015
2 parents 43184b1 + 580b001 commit 6a8e926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@ their own that I can ignore when I pull)
* Pull request - bonus point for topic branches

To ensure your PRs are considered for upstream, you MUST follow the CakePHP coding standards. A `pre-commit`
hook has been included to automatically run the code sniffs for you:
hook has been included to automatically run the code sniffs for you. From your project's root directory:

```
ln -s ../../contrib/pre-commit .git/hooks/.
cp vendor/friendsofcake/bootstrap-ui/contrib/pre-commit .git/hooks/
chmod 755 .git/hooks/pre-commit
```

## Bugs & Feedback
Expand Down
2 changes: 1 addition & 1 deletion contrib/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SFILES=${SFILES:-$FILES}
if [ "$FILES" != "" ]
then
echo "Running PHPCS"
./vendor/bin/phpcs --standard=vendor/cakephp/cakephp-codesniffer/CakePHP $SFILES
./vendor/bin/phpcs --standard=vendor/cakephp/cakephp-codesniffer/CakePHP --ignore=*/config/Migrations/* $SFILES
if [ $? != 0 ]
then
echo "PHPCS Errors found; commit aborted."
Expand Down

0 comments on commit 6a8e926

Please sign in to comment.