Skip to content

Commit

Permalink
More explanation on how to turn phpcs on with OC rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeblanco committed Aug 20, 2014
1 parent 78dc6dd commit c752556
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -15,10 +15,20 @@ Or alternatively, include a dependency for `object-calisthenics/phpcs-calistheni

{
"require-dev": {
"squizlabs/php_codesniffer": "dev-master",
"object-calisthenics/phpcs-calisthenics-rules": "dev-master"
}
}

Finally, enable it as part of your project code sniffer ruleset (ie. phpcs.xml in root project directory):

<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Project">
<description>Project Coding Standard</description>

<rule ref="vendor/object-calisthenics/phpcs-calisthenics-rules/ObjectCalisthenics/ruleset.xml"/>
</ruleset>


# Object Calisthenics

Expand Down

0 comments on commit c752556

Please sign in to comment.