<?xml version="1.0"?>
<ruleset name="WPUltimo">
  <description>Rules for Coding Standards in WP Ultimo products</description>

	<arg name="basepath" value="."/>
	<arg name="extensions" value="php" />

	<file>.</file>

  <arg value="sp"/> <!-- Show sniff and progress -->
  <arg name="colors"/>

	<rule ref="NextPressModern"/>

  <!-- Rules: Check PHP version compatibility -->
  <rule ref="PHPCompatibilityWP"/>
  <config name="minimum_supported_wp_version" value="4.6"/>
  <config name="testVersion" value="7.4-"/>
  <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
		<properties>
			<!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. -->
			<property name="prefixes" type="array" value="Ultimo"/>
		</properties>
    <exclude-pattern>tests/*</exclude-pattern>
	</rule>

  <rule ref="WordPress.WP.I18n">
    <properties>
      <property name="text_domain" value="wp-ultimo"/>
    </properties>
  </rule>

</ruleset>
