forked from buddypress/buddypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
43 lines (35 loc) · 1.72 KB
/
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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="BuddyPress Coding Standards Configuration" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>BuddyPress Coding Standards Configuration.</description>
<!-- Load BuddyPress Coding standards -->
<rule ref="BuddyPress" />
<!--
Pass some flags to PHPCS:
p flag: Show progress of the run.
s flag: Show sniff codes in all reports.
v flag: Print processed files.
-->
<arg value="sp" />
<!-- Make it pretty. -->
<arg name="colors"/>
<!-- Whenever possible, cache the scan results and re-use those for unchanged files on the next scan. -->
<arg name="cache" value=".phpcs/cache.json" />
<!-- Check 20 files in parallel. -->
<arg name="parallel" value="20"/>
<!-- Set severity to 1 to see everything that isn't effectively turned off. -->
<arg name="severity" value="1"/>
<!-- What to exclude -->
<exclude-pattern>*/**/tests/</exclude-pattern>
<!-- Exclude those rules. -->
<rule ref="BuddyPress">
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited" />
<exclude name="WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound" />
<exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" />
<exclude name="WordPress.PHP.YodaConditions.NotYoda" />
<exclude name="WordPress.NamingConventions.ValidPostTypeSlug.NotStringLiteral" />
<exclude name="WordPress.PHP.DontExtract.extract_extract" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_key" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_value" />
<exclude name="WordPress.DateTime.RestrictedFunctions.date_date" />
</rule>
</ruleset>