-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml
More file actions
38 lines (33 loc) · 1.7 KB
/
Copy pathphpcs.xml
File metadata and controls
38 lines (33 loc) · 1.7 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
<?xml version="1.0"?>
<ruleset name="CC Analytics">
<description>PHP CodeSniffer rules for CC Analytics WordPress plugin with WooCommerce naming conventions.</description>
<!-- Include the WordPress Coding Standards -->
<rule ref="WordPress">
<exclude name="Squiz.Commenting.ClassComment"/>
</rule>
<!-- Configure WordPress.Files.FileName to allow WooCommerce naming conventions -->
<rule ref="WordPress.Files.FileName">
<properties>
<!-- Disable strict class file naming to allow class-wc-cc-* patterns -->
<property name="strict_class_file_names" value="false"/>
</properties>
</rule>
<!-- Define the files and directories to include in the code sniffing process -->
<file>cc-analytics.php</file>
<file>includes/class-wc-cc-analytics.php</file>
<file>includes/class-cc-consent-manager.php</file>
<file>includes/class-cc-event-tracker.php</file>
<file>includes/class-cc-discount-manager.php</file>
<file>includes/class-cc-admin-ui.php</file>
<file>includes/class-cc-rest-api.php</file>
<file>includes/class-convertcart-sms-consent-block-integration.php</file>
<file>includes/class-convertcart-email-consent-block-integration.php</file>
<!-- Exclude any directories or files that should not be checked -->
<exclude-pattern>vendor/*</exclude-pattern>
<!-- Exclude generated asset files from filename validation -->
<exclude-pattern>assets/dist/js/*/*.asset.php</exclude-pattern>
<!-- Exclude minified JavaScript files -->
<exclude-pattern>assets/dist/js/*/*.js</exclude-pattern>
<!-- 1 - less critical issues, 10 - most critical issues -->
<arg name="severity" value="1"/>
</ruleset>