<?xml version="1.0"?> <ruleset name="WordPress Coding Standards for Plugins"> <description>Generally-applicable sniffs for WordPress plugins</description> <!-- Pass some flags to PHPCS: p flag: Show progress of the run. s flag: Show sniff codes in all reports. --> <arg value="ps" /> <!-- Only check the PHP files. --> <arg name="extensions" value="php" /> <!-- Check all files in this directory and the directories below it. --> <file>.</file> <!-- Exclude a few directories and autogenerated files. --> <exclude-pattern>*/node_modules/*</exclude-pattern> <exclude-pattern>*/vendor/</exclude-pattern> <rule ref="WordPress"> <exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" /> <exclude name="WordPress.PHP.DisallowShortTernary" /> <rule ref="Generic.Arrays.DisallowLongArraySyntax" /> </rule> <rule ref="WordPressVIPMinimum" /> <!--<rule ref="WordPress-VIP-Go" />--> <config name="minimum_supported_wp_version" value="4.9" /> <rule ref="WordPress.NamingConventions.PrefixAllGlobals"> <properties> <property name="prefixes" type="array" value="camo" /> </properties> </rule> </ruleset>