morganestes
4/11/2017 - 8:13 PM

PHP Code Sniffer ruleset for WordPress themes developed by BigWing Interactive.

PHP Code Sniffer ruleset for WordPress themes developed by BigWing Interactive.

<?xml version="1.0"?>
<ruleset name="BigWing WP">

	<description>A custom coding standard for BigWing themes.</description>

	<rule ref="WordPress-Extra">
		<exclude name="Squiz.PHP.DisallowMultipleAssignments"/>
		<exclude name="Squiz.Commenting.LongConditionClosingComment"/>
	</rule>
	<!--<rule ref="WordPress-Docs"/>-->
	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" type="array" value="%theme-slug%"/>
		</properties>
	</rule>
	<rule ref="WordPress.Files.FileName">
		<properties>
			<property name="is_theme" value="true"/>
		</properties>
	</rule>
	<rule ref="WordPress.NamingConventions.ValidHookName">
		<properties>
			<property name="additionalWordDelimiters" value="-./"/>
		</properties>
	</rule>

	<rule ref="WordPress.XSS.EscapeOutput">
		<properties>
			<property name="customAutoEscapedFunctions" value="nest_add_gtm_event" type="array"/>
		</properties>
	</rule>

	<rule ref="PHPCompatibility">
		<config name="testVersion" value="5.4-7.1"/>
	</rule>

	<exclude-pattern>*/tests/*</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*/bower_components/*</exclude-pattern>

</ruleset>