-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
40 lines (35 loc) · 1.39 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
<?xml version="1.0"?>
<ruleset name="shubkb">
<description>Generally-applicable sniffs for WordPress plugins</description>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
</rule>
<file>.</file>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<!-- List of text domains used in your plugin and theme -->
<element value="shubkbPlugin" />
<element value="shubkbTheme" />
</property>
</properties>
</rule>
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra" />
<!-- <rule ref="PHPCompatibilityWP"/> -->
<config name="testVersion" value="8.0-"/>
<arg name="extensions" value="php"/>
<arg value="s"/>
<exclude-pattern>*/dev-lib/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>.github/</exclude-pattern>
<exclude-pattern>plugins/google-site-kit/</exclude-pattern>
<exclude-pattern>plugins/hostinger/</exclude-pattern>
<exclude-pattern>plugins/hostinger-ai-assistant/</exclude-pattern>
<exclude-pattern>plugins/litespeed-cache/</exclude-pattern>
<exclude-pattern>themes/twentytwentyfour/</exclude-pattern>
</ruleset>