<?xml version="1.0"?> <ruleset name="CMW.WordPress"> <!-- Add source codes in the report --> <arg value="s"/> <arg name="colors"/> <!-- Check all PHP files in directory tree by default. --> <arg name="extensions" value="php"/> <file>.</file> <rule ref="WordPress"> <!-- I prefer slash-delimited Hooks --> <exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" /> <!-- Yoda? Really? --> <exclude name="WordPress.PHP.YodaConditions.NotYoda" /> <!-- Not a fan of arrow or equals alignment --> <exclude name="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned" /> <exclude name="Generic.Formatting.MultipleStatementAlignment.NotSameWarning" /> <!-- PSR4 --> <exclude name="WordPress.Files.FileName.InvalidClassFileName"/> <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/> </rule> <rule ref="WordPress.WP.I18n"> <properties> <property name="text_domain" type="array" value="conditional-form-actions-for-acfe" /> </properties> </rule> <!-- Allow short array syntax --> <rule ref="Generic.Arrays.DisallowShortArraySyntax.Found"> <severity>0</severity> </rule> <rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/> <!-- Nesting levels --> <rule ref="Generic.Metrics.NestingLevel"> <properties> <property name="absoluteNestingLevel" value="1"/> </properties> </rule> <!-- <exclude-pattern>node_modules/*</exclude-pattern> <exclude-pattern>vendor/*</exclude-pattern> --> </ruleset>