forked from gruz0/remove-noreferrer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
52 lines (40 loc) · 1.74 KB
/
phpcs.xml
File metadata and controls
52 lines (40 loc) · 1.74 KB
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
48
49
50
51
52
<?xml version="1.0"?>
<ruleset name="Remove-NoReferrer">
<description>A custom set of rules to check for a WPized WordPress project</description>
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility/PHPCompatibility,vendor/phpcompatibility/phpcompatibility-wp/PHPCompatibilityWP,vendor/phpcompatibility/phpcompatibility-paragonie/PHPCompatibilityParagonieSodiumCompat" />
<exclude-pattern>/build/*</exclude-pattern>
<exclude-pattern>/inc/*</exclude-pattern>
<exclude-pattern>/tests/wordpress-dev/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Check for PHP cross-version compatibility -->
<config name="testVersion" value="5.6-" />
<rule ref="PHPCompatibility" />
<!-- WordPress Coding Standards -->
<config name="minimum_supported_wp_version" value="5.1" />
<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra" />
<rule ref="WordPress.WP.I18n" />
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>*/tests/*</exclude-pattern>
<properties>
<property name="prefixes" type="array">
<element value="Remove_Noreferrer" />
<element value="GRN" />
</property>
</properties>
</rule>
<!-- Extra Rulesets -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
<rule ref="Generic.Commenting.Todo" />
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>/**/index.php</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.ClassComment.Missing">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.DocComment.MissingShort">
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
</ruleset>