abrain/einsatzverwaltung

View on GitHub
.phpcs.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<ruleset name="Einsatzverwaltung">
    <description>Custom ruleset for the Einsatzverwaltung plugin.</description>

    <!-- What to scan -->
    <file>.</file>
    <exclude-pattern>/.idea/*</exclude-pattern>
    <exclude-pattern>/vendor/*</exclude-pattern>

    <!-- How to scan -->
    <arg value="sp"/> <!-- Show sniff and progress -->
    <arg name="colors"/> <!-- Show results with colors -->
    <arg name="basepath" value="."/> <!-- Strip the file paths down to the relevant bit -->
    <arg name="extensions" value="php"/> <!-- Limit to PHP files -->

    <!-- The PHP version range to test -->
    <config name="testVersion" value="7.1-"/>

    <!-- PHPCompatibility standard with adjustments for WordPress -->
    <rule ref="PHPCompatibilityWP"/>

    <!-- For now, continue to use the PSR2 standard. This requires to deactivate the line length sniff, because gettext calls cannot be wrapped -->
    <rule ref="PSR2">
        <exclude name="Generic.Files.LineLength"/>
    </rule>

    <!-- For help in understanding these custom sniff properties:
            https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
    <config name="minimum_wp_version" value="5.6"/>

    <rule ref="WordPress.WP.I18n">
        <properties>
            <property name="text_domain" type="array">
                <element value="einsatzverwaltung"/>
                <element value="default"/>
            </property>
        </properties>
    </rule>

    <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
        <properties>
            <property name="prefixes" type="array">
                <element value="einsatzverwaltung"/>
                <element value="abrain\Einsatzverwaltung"/>
            </property>
        </properties>
    </rule>
</ruleset>