This repository was archived by the owner on Jun 9, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy path.phpcs.xml
More file actions
67 lines (53 loc) 路 2.14 KB
/
Copy path.phpcs.xml
File metadata and controls
67 lines (53 loc) 路 2.14 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Posty" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<!--
Prevent errors caused by WordPress Coding Standards not supporting PHP 8.0+.
See https://github.com/WordPress/WordPress-Coding-Standards/issues/2035
-->
<ini name="error_reporting" value="E_ALL & ~E_DEPRECATED" />
<file>.</file>
<!-- Exclude WP Core folders and files from being checked. -->
<exclude-pattern>/wordpress/*</exclude-pattern>
<exclude-pattern>/wp-admin/*</exclude-pattern>
<exclude-pattern>/wp-includes/*</exclude-pattern>
<exclude-pattern>/wp-*.php</exclude-pattern>
<exclude-pattern>/index.php</exclude-pattern>
<exclude-pattern>/xmlrpc.php</exclude-pattern>
<exclude-pattern>/wp-content/plugins/*</exclude-pattern>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Exclude the Node Modules directory. -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="."/>
<!-- Check up to 8 files simultaneously. -->
<arg name="parallel" value="8"/>
<rule ref="WordPress-Extra">
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
</rule>
<rule ref="WordPress-Docs">
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
</rule>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.Commenting.Todo"/>
<config name="testVersion" value="8.0-"/>
<rule ref="PHPCompatibilityWP"/>
<config name="minimum_supported_wp_version" value="6.2"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="posty-starter-plugin"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="Posty"/>
</property>
</properties>
</rule>
</ruleset>