<?xml version="1.0"?>
<ruleset name="Ultimate Extension for ACF">
	<description>WordPress Coding Standards configuration for Ultimate Extension for ACF plugin</description>

	<!-- What to scan -->
	<file>.</file>

	<!-- Exclude vendor and node_modules directories -->
	<exclude-pattern>/vendor/</exclude-pattern>
	<exclude-pattern>/node_modules/</exclude-pattern>

	<!-- How to scan -->
	<arg name="colors"/>
	<arg name="extensions" value="php"/>
	<arg name="parallel" value="8"/>

	<!-- Rules: Check WordPress-Extra -->
	<rule ref="WordPress-Extra">
		<!-- Allow short array syntax -->
		<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
	</rule>

	<!-- Rules: Check WordPress -->
	<rule ref="WordPress">
		<!-- Allow short array syntax -->
		<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
	</rule>

	<!-- Custom text domain configuration -->
	<rule ref="WordPress.WP.I18n">
		<!-- Set the correct text domain for this plugin -->
		<properties>
			<property name="text_domain" value="ultimate-extension-for-acf"/>
		</properties>
	</rule>

	<!-- Allow long lines for URLs and comments -->
	<rule ref="Generic.Files.LineLength">
		<properties>
			<property name="lineLimit" value="120"/>
			<property name="absoluteLineLimit" value="150"/>
		</properties>
	</rule>

	<!-- Exclude certain directories from specific checks -->
	<exclude-pattern>/languages/</exclude-pattern>
	<exclude-pattern>/assets/</exclude-pattern>

	<!-- Minimum supported WordPress version -->
	<config name="minimum_supported_wp_version" value="5.0"/>
</ruleset>
