Skip to content

Commit 162c7fb

Browse files
add phpcs.xml
1 parent dacd957 commit 162c7fb

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

phpcs.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Project Standard">
3+
<description>Custom PHPCS rules for our project</description>
4+
5+
<!-- Scan these folders -->
6+
<file>src</file>
7+
<file>tests</file>
8+
<exclude-pattern>vendor/*</exclude-pattern>
9+
<exclude-pattern>storage/*</exclude-pattern>
10+
11+
<!-- Base standard -->
12+
<rule ref="PSR12" />
13+
14+
<!-- Customizations -->
15+
<rule ref="Generic.Files.LineLength">
16+
<properties>
17+
<property name="lineLimit" value="120"/>
18+
<property name="absoluteLineLimit" value="140"/>
19+
</properties>
20+
</rule>
21+
22+
<!-- Exclude some checks -->
23+
<exclude name="Generic.Commenting.Todo" />
24+
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace" />
25+
26+
<!-- Custom Sniffs (if any) -->
27+
<config name="ignore_warnings_on_exit" value="1"/>
28+
</ruleset>

0 commit comments

Comments
 (0)