<?xml version="1.0"?>
<ruleset name="The SEO Framework">
	<description>The coding standard used for The SEO Framework plugin for WordPress.</description>

	<!-- Get it here: https://github.com/theseoframework/wpcs-tsf -->
	<rule ref="TSF"/>

	<!-- Defined at wpcs-tsf. We cannot override that here... -->
	<!-- <config name="minimum_supported_wp_version" value="5.5"/> -->
	<!-- <config name="testVersion" value="7.2-"/> -->

	<rule ref="TSF.Performance.Opcodes">
		<properties>
			<!-- Can we drop these exceptions at 3.0, perhaps use keywords may then be supported? -->
			<property name="userNoopChecks" type="array" value="_can_load,has_run,_bootstrap_timer,is_headless,memo,umemo,fmemo,normalize_generation_args,get_query_type_from_args,coalesce_strlen"/>
		</properties>
	</rule>

	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" type="array" value="autodescription,default"/>
		</properties>
	</rule>

	<!-- Exclude minified scripts. -->
	<exclude-pattern>*.min.js</exclude-pattern>
	<exclude-pattern>*.min.css</exclude-pattern>

	<!-- Exclude index.php files. They are inert in (our) plugins unless directly included/called. -->
	<exclude-pattern>index.php</exclude-pattern>

	<!-- Check all PHP files in directory tree by default. -->
	<arg name="extensions" value="php"/>
	<file>.</file>
</ruleset>
