Skip to content

Commit

Permalink
Fixed "How to run the sniffs" readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Jan 3, 2018
1 parent 6076e21 commit 7b5fa57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ Mention Slevomat Coding Standard in your project's `ruleset.xml`:
```xml
<?xml version="1.0"?>
<ruleset name="AcmeProject">
<config name="installed_paths" value="../../slevomat/coding-standard"/><!-- relative path from PHPCS source location -->
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"><!-- relative path to your ruleset.xml -->
<!-- sniffs to exclude -->
</rule>
</ruleset>
```

Expand All @@ -439,7 +441,7 @@ Or write your own ruleset.xml by referencing the selected sniffs. This is a samp
<ruleset name="AcmeProject">
<config name="installed_paths" value="../../slevomat/coding-standard"/><!-- relative path from PHPCS source location -->
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<!-- ...other sniffs to include... -->
<!-- other sniffs to include -->
</ruleset>
```

Expand Down

0 comments on commit 7b5fa57

Please sign in to comment.