forked from DigitalKwarts/classy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.ruleset.xml
More file actions
executable file
·24 lines (20 loc) · 951 Bytes
/
phpcs.ruleset.xml
File metadata and controls
executable file
·24 lines (20 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0"?>
<ruleset name="Classy">
<!-- Don't validate not our code -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Ignore all assets -->
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*.less</exclude-pattern>
<!-- Strange but without this, nothing works. -->
<rule ref="vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayDeclarationSniff.php"/>
<!-- WordPress Core + Extra + Docs Code Style -->
<rule ref="vendor/wp-coding-standards/wpcs/WordPress-Core" />
<rule ref="vendor/wp-coding-standards/wpcs/WordPress-Extra" />
<rule ref="vendor/wp-coding-standards/wpcs/WordPress-Docs">
<!-- Ignore PHP 7 -->
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing" />
<!-- Conflict with PSR-4 -->
<exclude name="WordPress.Files.FileName.UnderscoresNotAllowed" />
</rule>
</ruleset>