-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.ruleset.xml
27 lines (27 loc) · 1.15 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
<?xml version="1.0"?>
<ruleset>
<!-- Use Pressbooks Coding Standards -->
<rule ref="vendor/pressbooks/coding-standards">
<!-- TODO: Renable these rules at some point -->
<exclude name="Squiz.Commenting"/>
<exclude name="Generic.Commenting"/>
<exclude name="Pressbooks.Security.EscapeOutput.OutputNotEscaped"/>
<exclude name="Pressbooks.Security.ValidatedSanitizedInput"/>
<exclude name="WordPress.NamingConventions.ValidVariableName"/>
</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>/pressbooks-saml-sso.php</exclude-pattern>
</rule>
<rule ref="HM.Functions.NamespacedFunctions.MissingNamespace">
<exclude-pattern>/pressbooks-saml-sso.php</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>