-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruleset.xml
27 lines (23 loc) · 999 Bytes
/
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 name="WordPress-Short">
<!-- Include the WordPress-Extra standard -->
<!-- @see https://gist.github.com/nunomorgadinho/b2d8e5b8f5fec5b0ed946b24fa288a91 -->
<rule ref="WordPress-Extra">
<!-- Allow short array syntax. -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- Allow short array syntax. -->
<rule ref="Universal.Arrays.DisallowShortArraySyntax">
<exclude-pattern>*</exclude-pattern>
</rule>
<!-- Disallow long array syntax -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<!-- Methods such as shortcode() & render() declare all passed arguments, even if not used. -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed">
<exclude-pattern>*</exclude-pattern>
</rule>
<!-- Applies to PHP4-style constructors, but plugin requires 5.6.20+. -->
<rule ref="Universal.CodeAnalysis.ConstructorDestructorReturn.ReturnValueFound">
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>