Skip to content

Commit

Permalink
Add phpcs dependencies and hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-alrek committed Mar 27, 2019
1 parent 3df7618 commit e0b17d1
Show file tree
Hide file tree
Showing 2 changed files with 364 additions and 3 deletions.
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,16 @@
"guzzlehttp/guzzle": "^6.3"
},
"require-dev": {
"phpunit/phpunit": "^6.5"
"phpunit/phpunit": "^6.5",
"squizlabs/php_codesniffer": "^3.4",
"brainmaestro/composer-git-hooks": "^2.6"
},
"scripts": {
"test": "vendor/bin/phpunit --bootstrap vendor/autoload.php tests"
},
"extra": {
"hooks": {
"pre-commit": ["vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 -n src/"]
}
}
}
Loading

0 comments on commit e0b17d1

Please sign in to comment.