<?xml version="1.0"?>
<ruleset name="smntcs">
	<description>Coding standards used for checking SMNTCS plugins.</description>

	<!-- Command line arguments -->
	<arg value="sp"/>
	<arg name="colors"/>
	<arg name="parallel" value="100"/>
	<arg name="extensions" value="php"/>
	<arg name="cache" value=".phpcs.cache"/>

	<!-- WordPress standards -->
	<rule ref="WordPress-Extra"/>
	<rule ref="WordPress-Docs"/>
	<rule ref="WordPress">
		<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
	</rule>

	<!-- Files to exclude from checking -->
	<exclude-pattern>.github/*</exclude-pattern>
	<exclude-pattern>vendor/*</exclude-pattern>
	<exclude-pattern>node_modules/*</exclude-pattern>

	<!-- Formatting rules -->
	<rule ref="Generic.Formatting.MultipleStatementAlignment">
		<properties>
			<property name="maxPadding" value="12"/>
			<property name="error" value="true"/>
		</properties>
	</rule>
	<rule ref="WordPress.Arrays.ArrayKeySpacingRestrictions.">
		<properties>
			<property name="SpacesAroundArrayKeys" value="exact"/>
		</properties>
	</rule>

	<!-- Array syntax rules -->
	<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
	<rule ref="Generic.Arrays.DisallowShortArraySyntax">
		<severity>0</severity>
	</rule>
	<rule ref="Universal.Arrays.DisallowShortArraySyntax">
		<severity>0</severity>
	</rule>

	<!-- PHP Compatibility -->
	<config name="testVersion" value="7.4-"/>
	<rule ref="PHPCompatibility"/>

</ruleset>
