-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
22 lines (18 loc) · 954 Bytes
/
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Polylang PHPUnit" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Coding standards for Polylang PHPUnit</description>
<arg value="p"/><!-- Shows progress. -->
<arg name="colors"/><!-- Shows results with colors. -->
<arg name="extensions" value="php"/><!-- Limits to PHP files. -->
<!-- https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->
<file>.</file>
<!-- Our own ruleset. -->
<rule ref="Polylang">
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error"/>
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited"/>
<exclude name="WordPressVIPMinimum.Files.IncludingFile.UsingVariable"/>
</rule>
<!-- Run against the PSR-4 ruleset. -->
<!-- https://github.com/suin/phpcs-psr4-sniff -->
<arg name="basepath" value="."/>
</ruleset>