-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
33 lines (27 loc) · 1.32 KB
/
phpcs.xml
File metadata and controls
33 lines (27 loc) · 1.32 KB
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
<?xml version="1.0"?>
<ruleset name="Figma Grid Overlay">
<description>WordPress Coding Standards for the Figma Grid Overlay plugin.</description>
<!-- Include plugin-specific folders -->
<file>figma-grid-overlay.php</file>
<file>includes/</file>
<file>admin/</file>
<!-- Use the official WordPress coding standards -->
<rule ref="WordPress" />
<!-- Optional: Allow missing file comments -->
<rule ref="Squiz.Commenting">
<exclude name="Squiz.Commenting.FileComment.Missing" />
</rule>
<!-- Optional: Suppress overly strict DB sniffing (not used in this plugin anyway) -->
<rule ref="WordPress.DB.DirectDatabaseQuery">
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
</rule>
<!-- Optional: Allow non-snake_case class member variables -->
<rule ref="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar">
<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar" />
</rule>
<!-- Optional: Relax spacing rule for arguments -->
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen">
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterOpen" />
</rule>
</ruleset>