<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">
	<arg name="colors" />
	<arg value="ps" />
	<arg name="basepath" value="." />
	<arg name="parallel" value="50" />
	<arg name="extensions" value="php" />

    <!-- Lint all PHP files by default. -->
	<file>.</file>

	<!-- Ensure all PHP code is compatible with PHP 5.6 and higher. -->
	<rule ref="PHPCompatibilityWP" />
	<config name="testVersion" value="7.2-"/>

	<rule ref="WordPress" />
	<rule ref="WordPress-VIP-Go" />

	<!-- disable nonce checks on tests -->
	<rule ref="WordPress.Security.NonceVerification">
		<exclude-pattern>tests/*.php</exclude-pattern>
		<exclude-pattern>tests/providers/*.php</exclude-pattern>
	</rule>

	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>
