Skip to content

Commit 09b67d4

Browse files
author
dereuromark
committed
add cs-check
1 parent aab2f4f commit 09b67d4

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,9 @@
4444
"TestApp\\": "tests/test_app/src",
4545
"Cake\\Test\\": "vendor/cakephp/cakephp/tests"
4646
}
47+
},
48+
"scripts": {
49+
"cs-check": "phpcs -p --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/cakephp-queue/vendor/,/tmp/,/logs/,/config/Migrations/ --extensions=php ./",
50+
"cs-fix": "phpcbf -v --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/cakephp-queue/vendor/,/tmp/,/logs/,/config/Migrations/ --extensions=php ./"
4751
}
4852
}

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,5 @@ Do not run this with production ones, though.
297297
I am looking forward to your contributions.
298298

299299
There are a few guidelines that I need contributors to follow:
300-
* Coding standards (`./sniff` to check and `./sniff -f` to fix)
300+
* Coding standards (`composer cs-check` to check and `composer cs-fix` to fix)
301301
* Passing tests (`php phpunit.phar`)

sniff

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)