<?xml version="1.0"?>
<ruleset name="Walti WordPress Plugin">
	<description>A custom set of rules to check for a Walti WordPress Plugin project</description>

	<file>.</file>
	<exclude-pattern>*/views/*</exclude-pattern>
	<exclude-pattern>*/images/*</exclude-pattern>
	<exclude-pattern>*/inc/*</exclude-pattern>

	<!--
	We may also want to to include all the rules in a standard
	-->
	<rule ref="WordPress-Core">
		<!--
		We may want a middle ground though. The best way to do this is add the
		entire ruleset, then rule by rule, remove ones that don't suit a project. We
		can do this by running `phpcs` with the '-s' flag, to see the names of the
		different Sniffs, as their rules are broken. From here, we can opt to
		exclude problematic sniffs like so.
		-->

		<exclude name="WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid" />
		<exclude name="WordPress.NamingConventions.ValidVariableName.MemberNotSnakeCase" />
		<exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
	</rule>
</ruleset>
