growella/gravityforms-autocomplete-fields

View on GitHub
phpcs.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
    Customize the rules WP Enforcer uses by editing this file according to PHP_CodeSniffer's
    ruleset.xml standard: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
-->
<ruleset name="GravityForms-AutocompleteFields">
    <description>Coding standards for Gravity Forms: Autocomplete Fields.</description>

    <!-- FILES -->
    <exclude-pattern>screenshots/*</exclude-pattern>
    <exclude-pattern>tests/*</exclude-pattern>
    <exclude-pattern>vendor/*</exclude-pattern>

    <!-- Don't be too picky about naming conventions, a lot of those come from Gravity Forms. -->
    <rule ref="WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar">
        <exclude-pattern>includes/*</exclude-pattern>
    </rule>

    <!--
        Don't get angry about checking files that don't contain code
        @link https://github.com/stevegrunwell/wp-enforcer/issues/12
    -->
    <rule ref="Internal.NoCodeFound">
        <severity>0</severity>
    </rule>

    <rule ref="WordPress-Extra" />
    <rule ref="WordPress-Docs" />
</ruleset>