Skip to content
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 -->
<!-- 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 ref="WordPress.NamingConventions.PrefixAllGlobals">
<property name="prefixes" type="array" value="nth_order_discount"/>
<rule ref="WordPress.WP.I18n">
<property name="text_domain" type="array" value="nth-order-discount-for-woocommerce"/>
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing">
<property name="blank_line_check" value="true"/>
<!-- 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">
<property name="strict_class_file_names" value="false" />
<rule ref="WordPress-Extra">
<!-- Do not check for proper WordPress file names. -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<!-- Enforce PSR1 compatible namespaces. -->
<rule ref="PSR1.Classes.ClassDeclaration"/>
You can’t perform that action at this time.