-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
31 lines (25 loc) · 915 Bytes
/
.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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Ankur Theme Coding Standards">
<!-- Use WPTRTCS: https://github.com/WPTRT/WPThemeReview. -->
<rule ref="WordPress"/>
<!-- Exclude files and folders. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<!-- Only check the PHP files. -->
<arg name="extensions" value="php"/>
<!-- Check PHP version compatibility. -->
<rule ref="PHPCompatibilityWP"/>
<config name="testVersion" value="7.4-"/>
<!-- Set textdomains. -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="ankur"/>
</property>
</properties>
</rule>
<!-- Ignore EOL character differnces. -->
<rule ref="Generic.Files.LineEndings">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
</rule>
</ruleset>