forked from humanmade/authorship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
46 lines (38 loc) · 1.52 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset name="Authorship">
<config name="testVersion" value="7.2-"/>
<arg name="extensions" value="php"/>
<arg value="s"/>
<exclude-pattern>/build/*</exclude-pattern>
<exclude-pattern>/lib/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/tests/wordpress/*</exclude-pattern>
<exclude-pattern>/tests/wp-config.php</exclude-pattern>
<exclude-pattern>/tests/wp-tests-config.php</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<rule ref="HM">
<!-- Exclude filename related sniffs -->
<exclude name="HM.Files"/>
<exclude name="WordPress.Files"/>
<!-- Exclude short description sniff so short `@var` notation can be used -->
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<!-- This sniff has been removed in the most recent PSR2R standard, but it is still included in the HM one -->
<exclude name="PSR2R.Namespaces.UseInAlphabeticalOrder.Order"/>
<!-- This sniff does not respect references in comments and documentation -->
<exclude name="PSR2R.Namespaces.UnusedUseStatement.UnusedUse"/>
</rule>
<rule ref="Squiz.Commenting">
<!-- Exclude the tests from commenting sniffs -->
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="authorship"/>
</properties>
</rule>
<rule ref="WordPress.WP.DeprecatedFunctions">
<properties>
<property name="minimum_supported_version" value="5.4"/>
</properties>
</rule>
</ruleset>