-
Notifications
You must be signed in to change notification settings - Fork 10
/
phpcs.xml
36 lines (31 loc) · 1.38 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
<?xml version="1.0"?>
<ruleset name="CS">
<description>I Recommend This Plugin coding standards.</description>
<file>i-recommend-this.php</file>
<file>admin/</file>
<file>build/</file>
<file>includes/</file>
<file>public/</file>
<!-- Include the WordPress Coding Standards -->
<rule ref="WordPress"/>
<rule ref="Squiz.Commenting">
<exclude name="Squiz.Commenting.FileComment.Missing" />
</rule>
<!-- Ignore specific warnings -->
<rule ref="WordPress.DB.DirectDatabaseQuery">
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
</rule>
<!-- <rule ref="WordPress.DB.DirectDatabaseQuerySchemaChange">
<exclude name="WordPress.DB.DirectDatabaseQuerySchemaChange.SchemaChange" />
</rule> -->
<rule ref="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar">
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
</rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen">
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen" />
</rule>
<!-- Exclude specific sniffs -->
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery"/>
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching"/>
<exclude name="WordPress.DPreparedSQL.NotPrepared"/>
</ruleset>