-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpcs.xml
41 lines (38 loc) · 1.22 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
36
37
38
39
40
41
<?xml version="1.0"?>
<ruleset>
<file>src</file>
<!--file>tests</file-->
<file>.phan</file>
<file>scoper.inc.php</file>
<file>phpstan-bootstrap.php</file>
<arg name="basepath" value="./"/>
<arg name="colors"/>
<arg value="s"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<config name="testVersion" value="7.4-8.1"/>
<rule ref="PHPCompatibilityWP"/>
<config name="minimum_supported_wp_version" value="7.4"/>
<rule ref="WordPress">
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>scoper.inc.php</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="Skautis_Integration"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="skautis-integration"/>
</properties>
</rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
<properties>
<property name="blank_line_check" value="true"/>
</properties>
</rule>
</ruleset>