Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (47 sloc) 1.74 KB
<?xml version="1.0"?>
<ruleset name="Nth Order Discount for WooCommerce ruleset">
<description>Sniffs for Nth Order Discount for WooCommerce.</description>
<!-- What to scan -->
<file>.</file>
<exclude-pattern>/vendor/</exclude-pattern>
<!-- How to scan -->
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="8"/>
<!-- Rules: Check PHP version compatibility -->
<config name="testVersion" value="5.4-"/>
<rule ref="PHPCompatibilityWP"/>
<!-- Rules: WordPress Coding Standards -->
<config name="minimum_supported_wp_version" value="4.7"/>
<rule ref="WordPress">
<exclude name="WordPress.VIP"/>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array" value="nth_order_discount"/>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="nth-order-discount-for-woocommerce"/>
</properties>
</rule>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
<properties>
<property name="blank_line_check" value="true"/>
</properties>
</rule>
<!-- The WordPress Coding Standards state that all class files should start with 'class-'. -->
<!-- Nth Order Discount for WooCommerce follows the PSR-0 standard for naming class files, because it uses autoloading via Composer. -->
<rule ref="WordPress.Files.FileName">
<properties>
<property name="strict_class_file_names" value="false" />
</properties>
</rule>
<rule ref="WordPress-Extra">
<!-- Do not check for proper WordPress file names. -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
</rule>
<!-- Enforce PSR1 compatible namespaces. -->
<rule ref="PSR1.Classes.ClassDeclaration"/>
</ruleset>
You can’t perform that action at this time.