-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
30 lines (24 loc) · 1.01 KB
/
phpcs.xml
File metadata and controls
30 lines (24 loc) · 1.01 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
<?xml version="1.0"?>
<ruleset name="Celestial">
<description>
Minimal WordPress Coding Standards configuration for Celestial.
Focused on safety and consistency without excessive strictness.
</description>
<!-- Use strict WordPress standards -->
<rule ref="WordPress-Extra" />
<rule ref="WordPress-Docs" />
<!-- Disable filename rules for class files and lowercase hyphenation -->
<rule ref="WordPress.Files.FileName">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
</rule>
<!-- Only check PHP files -->
<arg name="extensions" value="php"/>
<!-- Scan only the core plugin -->
<file>cel-core</file>
<!-- Ignore generated or third-party code -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/editor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
</ruleset>