Skip to content

Commit 7b5fa57

Browse files
committed
Fixed "How to run the sniffs" readme
1 parent 6076e21 commit 7b5fa57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,9 @@ Mention Slevomat Coding Standard in your project's `ruleset.xml`:
420420
```xml
421421
<?xml version="1.0"?>
422422
<ruleset name="AcmeProject">
423-
<config name="installed_paths" value="../../slevomat/coding-standard"/><!-- relative path from PHPCS source location -->
423+
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml"><!-- relative path to your ruleset.xml -->
424+
<!-- sniffs to exclude -->
425+
</rule>
424426
</ruleset>
425427
```
426428

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

0 commit comments

Comments
 (0)