Skip to content

Commit

Permalink
Simplify PHP_CodeSniffer configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
  • Loading branch information
henriquemoody committed Apr 24, 2019
1 parent 6727e54 commit 936dbca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,5 +2,6 @@
build
composer.lock
infection-log.txt
phpcs.xml
phpunit.xml
vendor
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -36,8 +36,8 @@
"test": "./vendor/bin/phpunit",
"cover": "./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml",
"coveralls": "./vendor/bin/php-coveralls -v",
"check-style": "./vendor/bin/phpcs -p src",
"fix-style": "./vendor/bin/phpcbf -p src",
"check-style": "./vendor/bin/phpcs",
"fix-style": "./vendor/bin/phpcbf",
"bench": "./vendor/bin/phpbench run benchmarks/ --report=default",
"infection": "infection",
"release": "./bin/release.sh",
Expand Down
3 changes: 3 additions & 0 deletions phpcs.xml → phpcs.xml.dist
@@ -1,6 +1,9 @@
<?xml version="1.0"?>
<ruleset name="php-isocodes">
<description>PSR2 + extended checks</description>
<arg value="p" />
<arg value="s" />
<file>src/</file>
<config name="ignore_errors_on_exit" value="1"/>
<config name="ignore_warnings_on_exit" value="1"/>
<rule ref="PSR2"/>
Expand Down

0 comments on commit 936dbca

Please sign in to comment.