You've already forked wc-composable-product
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
|
|
<?xml version="1.0"?>
|
||
|
|
<ruleset name="WC Composable Product">
|
||
|
|
<description>PHPCS rules for WooCommerce Composable Products plugin</description>
|
||
|
|
|
||
|
|
<!-- Scan plugin source -->
|
||
|
|
<file>includes</file>
|
||
|
|
<file>wc-composable-product.php</file>
|
||
|
|
|
||
|
|
<!-- Show progress and use colors -->
|
||
|
|
<arg value="ps"/>
|
||
|
|
<arg name="colors"/>
|
||
|
|
|
||
|
|
<!-- Use WordPress Extra standard (Core + Extra, without Docs) -->
|
||
|
|
<rule ref="WordPress-Extra">
|
||
|
|
<!-- Allow PSR-4 PascalCase file naming -->
|
||
|
|
<exclude name="WordPress.Files.FileName"/>
|
||
|
|
</rule>
|
||
|
|
|
||
|
|
<!-- Check PHP 8.3+ compatibility -->
|
||
|
|
<rule ref="PHPCompatibilityWP"/>
|
||
|
|
<config name="testVersion" value="8.3-"/>
|
||
|
|
|
||
|
|
<!-- WordPress minimum version -->
|
||
|
|
<config name="minimum_wp_version" value="6.0"/>
|
||
|
|
|
||
|
|
<!-- Enforce text domain -->
|
||
|
|
<rule ref="WordPress.WP.I18n">
|
||
|
|
<properties>
|
||
|
|
<property name="text_domain" type="array">
|
||
|
|
<element value="wc-composable-product"/>
|
||
|
|
</property>
|
||
|
|
</properties>
|
||
|
|
</rule>
|
||
|
|
</ruleset>
|