File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed
Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -242,16 +242,6 @@ vendor/bin/phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-
242242
243243If you don't want to follow the whole standard, but find a handful of included sniffs useful, you can use them selectively.
244244
245- Besides requiring ` slevomat/coding-standard ` in composer.json, require also PHP_CodeSniffer in desired version:
246-
247- ``` JSON
248- {
249- "require-dev" : {
250- "squizlabs/php_codesniffer" : " 2.5.0"
251- }
252- }
253- ```
254-
255245You can choose one of two ways to run only selected sniffs from the standard on your codebase:
256246
257247### List all sniffs to run
Original file line number Diff line number Diff line change 77 },
88 "require" : {
99 "php" : " ^5.6|^7.0" ,
10- "jakub-onderka/php-parallel-lint" : " ~0.8"
10+ "jakub-onderka/php-parallel-lint" : " ~0.8" ,
11+ "squizlabs/php_codesniffer" : " ^2.5.0"
1112 },
1213 "require-dev" : {
1314 "consistence/coding-standard" : " ^0.10.1" ,
You can’t perform that action at this time.
0 commit comments