-
Notifications
You must be signed in to change notification settings - Fork 49
/
phpcs-security.ruleset.xml
47 lines (42 loc) · 1.47 KB
/
phpcs-security.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<ruleset name="WordPress Security">
<!-- Set a description for this ruleset. -->
<description>A WordPress Ruleset to check application safety.</description>
<exclude-pattern>assets/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>test/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>js/*.js</exclude-pattern>
<exclude-pattern>css/*.css</exclude-pattern>
<arg name="parallel" value="20"/>
<rule ref="Generic.PHP.Syntax"/>
<!-- Include the WordPress ruleset, with exclusions. -->
<rule ref="WordPress.CodeAnalysis">
</rule>
<rule ref="WordPress.DB">
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals"/>
<rule ref="WordPress.PHP">
<!-- omit non security sniffs -->
<exclude name="WordPress.PHP.DontExtract"/>
<exclude name="WordPress.PHP.YodaConditions"/>
</rule>
<rule ref="WordPress.Security">
</rule>
<rule ref="WordPress.Security.EscapeOutput">
<properties>
<property name="customEscapingFunctions" type="array">
<element value="acf_esc_attr"/>
<element value="$this->render_input"/>
</property>
</properties>
</rule>
<rule ref="WordPress.Utils">
</rule>
<rule ref="WordPress.WP">
<exclude name="WordPress.WP.I18n.MixedOrderedPlaceholders"/>
<exclude name="WordPress.WP.I18n.UnorderedPlaceholders"/>
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText"/>
</rule>
</ruleset>