-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathphpcs.xml
27 lines (22 loc) · 1.05 KB
/
phpcs.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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Example Project" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>A custom set of rules to check for a WPized WordPress project</description>
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Only check PHP files. -->
<arg name="extensions" value="php"/>
<!-- Show progress. -->
<arg value="p"/>
<!-- Treat all files as UTF-8. -->
<config name="encoding" value="utf-8"/>
<file>./</file>
<rule ref="WordPress-Docs"/>
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<rule ref="Generic.Commenting.Todo"/>
<rule ref="WordPress">
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase"/>
</rule>
<config name="minimum_supported_wp_version" value="5.6"/>
</ruleset>