Skip to content

Commit 3997268

Browse files
authored
Merge pull request #5 from leviy/update-phpcs-example-config
Update phpcs example config
2 parents d84bb2f + 77359c5 commit 3997268

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,15 @@ composer require --dev leviy/coding-standard
2121
Create a file `phpcs.xml` in the root of the project with the following contents:
2222

2323
```xml
24-
<?xml version="1.0"?>
25-
<ruleset name="LEVIY">
26-
<description>LEVIY</description>
27-
28-
<arg name="extensions" value="php" />
29-
30-
<file>./src</file>
24+
<?xml version="1.0" encoding="UTF-8"?>
25+
<ruleset>
26+
<rule ref="LEVIY"/>
3127

32-
<exclude-pattern>*Test.php</exclude-pattern>
28+
<config name="ignore_warnings_on_exit" value="1"/>
3329

34-
<rule ref="LEVIY"/>
30+
<file>src/</file>
31+
<file>tests/</file>
32+
<file>public/index.php</file>
3533
</ruleset>
3634
```
3735

0 commit comments

Comments
 (0)