forked from weDevsOfficial/wp-project-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
69 lines (51 loc) · 2.46 KB
/
phpcs.xml.dist
File metadata and controls
69 lines (51 loc) · 2.46 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>WP Project Manager - Comprehensive coding standards with Plugin Check rules</description>
<!-- =================================== -->
<!-- PLUGIN CHECK RULESETS -->
<!-- =================================== -->
<!-- Include WordPress Plugin Check Security Rules -->
<rule ref="./phpcs-xml/plugin-check-security.xml"/>
<!-- Include WordPress Plugin Check Performance Rules -->
<rule ref="./phpcs-xml/plugin-check-performance.xml"/>
<!-- Include WordPress Plugin Check General Rules -->
<rule ref="./phpcs-xml/plugin-check-general.xml"/>
<!-- Include WordPress Plugin Check Accessibility Rules -->
<!-- <rule ref="./phpcs-xml/plugin-check-accessibility.xml"/> -->
<!-- Include WordPress Plugin Check Plugin Repository Rules -->
<!-- <rule ref="./phpcs-xml/plugin-check-plugin-repo.xml"/> -->
<!-- Note: Commented out to avoid duplicate security rules -->
<!-- =================================== -->
<!-- LEGACY RULES (Kept for compatibility) -->
<!-- =================================== -->
<!-- WordPress Core Standards (optional, can be enabled) -->
<!-- <rule ref="WordPress-Core">
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent"/>
</rule> -->
<!-- WordPress Database Rules -->
<rule ref="WordPress.DB"/>
<!-- WordPress Security Rules -->
<rule ref="WordPress.Security"/>
<!-- WordPress Code Analysis Rules -->
<rule ref="WordPress.CodeAnalysis"/>
<!-- =================================== -->
<!-- FILE EXCLUSIONS -->
<!-- =================================== -->
<exclude-pattern>*/assets/*</exclude-pattern>
<!-- <exclude-pattern>*/src/*</exclude-pattern> -->
<exclude-pattern>*/lib/*</exclude-pattern>
<exclude-pattern>*/build/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/bin/*</exclude-pattern>
<!-- =================================== -->
<!-- PHPCS CONFIGURATION -->
<!-- =================================== -->
<arg name="extensions" value="php"/>
<arg name="report" value="full"/>
<arg name="report-file" value="phpcs-report.txt"/>
<arg name="warning-severity" value="0"/>
<arg value="s"/>
<file>.</file>
</ruleset>