<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards">

    <!-- tells phpcs to use the WordPress coding standard. -->
    <rule ref="WordPress"></rule>

    <!-- basepath is set to the current directory. -->
	<arg name="basepath" value="."/>

    <!-- specifies that all files in the current directory will be checked. -->
	<arg name="extensions" value="php"/>
    <file>.</file>

    <!-- exclude folders -->
    <exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern type="relative">build/*</exclude-pattern>
	<exclude-pattern type="relative">asssets/*</exclude-pattern>

    <rule ref="WordPress.Files.FileName.InvalidClassFileName">
		<exclude-pattern>includes/*</exclude-pattern>
	</rule>

    <rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
		<exclude-pattern>includes/*</exclude-pattern>
	</rule>

</ruleset>
