<?xml version="1.0"?>
<ruleset name="Olena Food Ordering">
	<description>Coding standards for the Olena Food Ordering plugin.</description>

	<!-- Scan the plugin source, skip build/vendor/third-party assets. -->
	<file>.</file>
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/assets/*</exclude-pattern>
	<exclude-pattern>*/build/*</exclude-pattern>

	<rule ref="WordPress"/>

	<!--
		The plugin intentionally namespaces its globals with the unique
		"vajofo" string (functions, constants) and the "ofo" string (hooks).
		Register both so PrefixAllGlobals recognises them as valid prefixes.
	-->
	<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
		<properties>
			<property name="prefixes" type="array">
				<element value="vajofo"/>
				<element value="VAJOFO"/>
				<element value="ofo"/>
			</property>
		</properties>
	</rule>

	<!-- Declared text domain. -->
	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" type="array">
				<element value="olena-food-ordering"/>
			</property>
		</properties>
	</rule>
</ruleset>
