-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcodesniffer.xml
25 lines (19 loc) · 970 Bytes
/
codesniffer.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
<?xml version="1.0"?>
<ruleset name="Mimetype Link Icons">
<description>Mimetype Link Icons rules for PHP_CodeSniffer</description>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>phpcs/*</exclude-pattern>
<exclude-pattern>wpcs/*</exclude-pattern>
<rule ref="WordPress-Extra">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" />
<exclude name="WordPress.Files.FileName" />
<!-- Demanding Yoda conditions is stupid. -->
<exclude name="WordPress.PHP.YodaConditions"/>
<!-- We should probably want to turn the below rules on, but these give issues with the current code base. -->
<exclude name="WordPress.XSS.EscapeOutput" /><!-- This sniff also has known & reported bugs -->
<!-- Turned off because of false positives. -->
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
</rule>
<rule ref="WordPress.PHP.DiscouragedFunctions"/>
</ruleset>