<?xml version="1.0"?>
<ruleset name="ByteEver Coding Standards">
	<description>ByteEver PHPCS extended.</description>
	<rule ref="ByteEver-Default" />

	<!-- Check all PHP files in directory tree by default. -->
	<arg name="extensions" value="php"/>
	<file>.</file>
	<exclude-pattern>languages/</exclude-pattern>
	<exclude-pattern>tests/</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*\.(css|js|xml)</exclude-pattern>

	<!-- Define some special rules for the Codeception tests. -->
	<rule ref="PSR2.Methods.MethodDeclaration">
		<exclude-pattern>*/tests/*</exclude-pattern>
	</rule>
	<rule ref="WordPress.NamingConventions">
		<exclude-pattern>*/tests/*</exclude-pattern>
	</rule>
</ruleset>
