fapi-cz/php-client

View on GitHub
tools/cs/ruleset.xml

Summary

Maintainability
Test Coverage
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./../../vendor/squizlabs/php_codesniffer/phpcs.xsd">

    <!-- Show only relevant part of path -->
    <arg name="basepath" value="./../../"/>

    <!-- Configure cache -->
    <!--    <arg name="cache" value="./codesniffer.dat"/>-->

    <!-- Import coding-standard -->
    <rule ref="./../../vendor/orisai/coding-standard/src/ruleset-8.1.xml">
        <exclude name="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator.RequiredNumericLiteralSeparator"/>
        <exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>

        <exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
        <exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>

        <!-- Because of mock clients-->
        <exclude name="SlevomatCodingStandard.Files.LineLength.LineTooLong"/>
    </rule>

    <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
        <properties>
            <property name="rootNamespaces" type="array">
                <element key="src/Fapi" value="Fapi"/>
                <element key="tests/Fapi" value="Fapi"/>
            </property>
            <property name="extensions" type="array">
                <element key="php" value="php"/>
                <element key="phpt" value="phpt"/>
            </property>
        </properties>
    </rule>
</ruleset>