-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathphpcs.xml
42 lines (34 loc) · 1.42 KB
/
phpcs.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
<?xml version="1.0"?>
<ruleset name="Municipio Theme">
<file>./library</file>
<file>./tests</file>
<exclude-pattern>./library/AcfFields</exclude-pattern>
<rule ref="Hbg-WordPress"></rule>
<rule ref="Squiz.Commenting.FunctionComment.Missing">
<type>warning</type>
<exclude-pattern>./library/**/*.test.php</exclude-pattern>
<exclude-pattern>./tests/phpunit/tests/**/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.Security.ValidatedSanitizedInput.MissingUnslash">
<exclude-pattern>./library/**/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput.OutputNotEscaped">
<exclude-pattern>./library/**/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.Security.ValidatedSanitizedInput.InputNotSanitized">
<exclude-pattern>./library/**/*.php</exclude-pattern>
</rule>
<rule ref="WordPress.Security.NonceVerification.Recommended">
<exclude-pattern>./library/**/*.php</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment.Missing">
<type>warning</type>
<exclude-pattern>./library/*.test.php</exclude-pattern>
<exclude-pattern>./tests/phpunit/tests/**/*.php</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="300"/>
</properties>
</rule>
</ruleset>