-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpcs.xml
35 lines (29 loc) · 1.21 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
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<ruleset name="Geniem"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>A custom set of rules to check styles for a Geniem WP projects</description>
<file>.</file>
<rule ref="./vendor/devgeniem/geniem-rules-codesniffer/Geniem/ruleset.xml"/>
<!--
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" />
<arg value="sp"/> <!-- Show sniff and progress -->
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="50"/>
<arg name="report-width" value="100"/>
<!-- Check code for cross-version PHP compatibility. -->
<config name="testVersion" value="8.1"/>
<rule ref="WordPress">
<exclude name="Squiz.Commenting.ClassComment"/>
</rule>
<rule ref="WordPress.WP">
<exclude name="WordPress.WP.I18n"/>
</rule>
<rule ref="WordPress.NamingConventions">
<exclude name="WordPress.NamingConventions.PrefixAllGlobals"/>
</rule>
</ruleset>