-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.ruleset.xml
30 lines (30 loc) · 1.32 KB
/
phpcs.ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0"?>
<ruleset>
<!-- Use Pressbooks Coding Standards -->
<rule ref="vendor/pressbooks/coding-standards" >
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase"/>
<!-- TODO: These should be re-enabled sooner than later... -->
<exclude name="Pressbooks.Security.EscapeOutput.OutputNotEscaped"/>
<exclude name="Squiz.Commenting"/>
<exclude name="Generic.Commenting"/>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName">
<!-- Exclude classes that override WP Core: -->
</rule>
<!-- Disable Side Effects and MissingNamespace rules for bootstrapping files: -->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>/excalibur.php</exclude-pattern>
</rule>
<rule ref="HM.Functions.NamespacedFunctions.MissingNamespace">
<exclude-pattern>/excalibur.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions">
<exclude-pattern>/inc/protocol/swordv1/*</exclude-pattern>
</rule>
<!-- Disable all rules for these files: -->
<exclude-pattern>*.blade.php</exclude-pattern>
<!-- Run against the PHPCompatibility ruleset -->
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="8.1-8.2"/>
</ruleset>