-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
67 lines (54 loc) · 2.36 KB
/
phpcs.xml
File metadata and controls
67 lines (54 loc) · 2.36 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
<?xml version="1.0"?>
<ruleset name="Quick Feedback Reviews">
<description>PHP CodeSniffer configuration for Quick Feedback Reviews plugin</description>
<!-- Files to check -->
<file>.</file>
<!-- Exclude patterns -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*.min.js</exclude-pattern>
<exclude-pattern>*.min.css</exclude-pattern>
<!-- WordPress Coding Standards -->
<rule ref="WordPress">
<!-- Exclude some rules that may be too strict for this project -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.ClassComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Squiz.Commenting.VariableComment.Missing"/>
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase"/>
</rule>
<!-- WordPress Extra rules -->
<rule ref="WordPress-Extra"/>
<!-- WordPress VIP rules (optional, for high-quality code) -->
<rule ref="WordPress-VIP-Go">
<exclude name="WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get"/>
<exclude name="WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude"/>
</rule>
<!-- Check for PHP cross-version compatibility -->
<rule ref="PHPCompatibilityWP"/>
<!-- Set minimum PHP version -->
<config name="testVersion" value="7.4-"/>
<!-- Set text domain -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="quick-feedback-reviews"/>
</properties>
</rule>
<!-- Verify that everything in the global namespace is prefixed -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="qfr,QFR"/>
</properties>
</rule>
<!-- Show progress -->
<arg value="p"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Use colors in output -->
<arg name="colors"/>
<!-- Show results with . progress -->
<arg value="p"/>
</ruleset>