<?xml version="1.0"?>
<ruleset name="typing-animation WordPress Coding Standards">
	<description>PHP CodeSniffer ruleset for typing-animation plugin</description>

	<!-- Include WordPress Coding Standards -->
	<rule ref="WordPress"/>

	<!-- Exclude some WordPress rules that are too strict -->
	<rule ref="WordPress.WP.I18n">
		<exclude name="WordPress.WP.I18n.MissingTranslatorsComment"/>
	</rule>

	<!-- Allow short array syntax -->
	<rule ref="Generic.Arrays.DisallowShortArraySyntax"/>

	<!-- Allow alternative control structure syntax -->
	<rule ref="Generic.ControlStructures.InlineControlStructure"/>

	<!-- Exclude some files from checking -->
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/tests/*</exclude-pattern>
	<exclude-pattern>*/assets/js/*</exclude-pattern>
	<exclude-pattern>*/assets/css/*</exclude-pattern>

	<!-- Set minimum PHP version -->
	<arg name="extensions" value="php"/>
	<arg name="colors"/>
	<arg value="p"/>
</ruleset> 