-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathphpcs.ruleset.xml
More file actions
21 lines (21 loc) · 886 Bytes
/
phpcs.ruleset.xml
File metadata and controls
21 lines (21 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0"?>
<ruleset>
<!-- Use Pressbooks Coding Standards -->
<rule ref="vendor/pressbooks/coding-standards">
<!-- TODO: These should be re-enabled sooner than later... -->
<exclude name="Squiz.Commenting"/>
<exclude name="Generic.Commenting"/>
<exclude name="Pressbooks.Security.EscapeOutput.OutputNotEscaped"/>
<exclude name="Pressbooks.Security.ValidatedSanitizedInput"/>
</rule>
<!-- Disable Side Effects and MissingNamespace rules for bootstrapping files: -->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>/functions.php</exclude-pattern>
</rule>
<rule ref="HM.Functions.NamespacedFunctions.MissingNamespace">
<exclude-pattern>/functions.php</exclude-pattern>
</rule>
<!-- Run against the PHPCompatibility ruleset -->
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="8.1-8.2"/>
</ruleset>