Skip to content

Commit

Permalink
Requiring PHP_CodeSniffer ^2.5.0 to secure interoperability
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 15, 2016
1 parent ecfeb2d commit 0ae638c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,6 @@ vendor/bin/phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-

If you don't want to follow the whole standard, but find a handful of included sniffs useful, you can use them selectively.

Besides requiring `slevomat/coding-standard` in composer.json, require also PHP_CodeSniffer in desired version:

```JSON
{
"require-dev": {
"squizlabs/php_codesniffer": "2.5.0"
}
}
```

You can choose one of two ways to run only selected sniffs from the standard on your codebase:

### List all sniffs to run
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
},
"require": {
"php": "^5.6|^7.0",
"jakub-onderka/php-parallel-lint": "~0.8"
"jakub-onderka/php-parallel-lint": "~0.8",
"squizlabs/php_codesniffer": "^2.5.0"
},
"require-dev": {
"consistence/coding-standard": "^0.10.1",
Expand Down

0 comments on commit 0ae638c

Please sign in to comment.