PronerInformatica/phppimaco

View on GitHub
phpcs.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
    <description>The coding standard for PHP_CodeSniffer itself.</description>
    <file>src</file>
    <exclude-pattern>*.(inc|css|js)</exclude-pattern>

    <arg name="colors" />
    <arg value="np"/>

    <!-- Don't hide tokenizer exceptions -->
    <rule ref="Internal.Tokenizer.Exception">
        <type>error</type>
    </rule>

    <rule ref="PSR2">
        <type>error</type>
    </rule>
    <rule ref="PSR1">
        <type>error</type>
    </rule>

    <!-- Lines can be N chars long (warnings), errors at M chars -->
    <rule ref="Generic.Files.LineLength">
        <properties>
            <property name="lineLimit" value="220"/>
        </properties>
    </rule>
</ruleset>