<?xml version="1.0"?>
<ruleset name="KG Digital Catalog for WooCommerce">
	<description>Coding standards for KG Digital Catalog for WooCommerce plugin.</description>

	<!-- Scan these files -->
	<file>.</file>

	<!-- Exclude vendor and node_modules -->
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>

	<!-- Use WordPress Coding Standards -->
	<rule ref="WordPress">
		<!-- Allow short array syntax -->
		<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
	</rule>

	<!-- Set the minimum supported WordPress version -->
	<config name="minimum_supported_wp_version" value="5.2"/>

	<!-- Declare the plugin prefix for PrefixAllGlobals sniff -->
	<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
		<properties>
			<property name="prefixes" type="array">
				<element value="kgdc"/>
				<element value="KGDC"/>
			</property>
		</properties>
	</rule>

	<!-- Set text domain for i18n sniffs -->
	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" type="array">
				<element value="kg-digital-catalog-for-woocommerce"/>
			</property>
		</properties>
	</rule>
</ruleset>
