dot-config/phpcs.xml.dist

48 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2017-11-04 14:09:22 -07:00
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>The coding standard for PHP_CodeSniffer itself.</description>
<file>vendor/autoload.php</file>
<file>src</file>
<file>tests</file>
<exclude-pattern>*/Standards/*/Tests/*\.(inc|css|js)</exclude-pattern>
<arg name="basepath" value="."/>
<arg name="colors" />
<arg name="parallel" value="75" />
<arg value="np"/>
<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Classes.ClassDeclaration" />
<type>error</type>
</rule>
<rule ref="PSR2">
<exclude name="PSR2.Namespaces.UseDeclaration" />
<exclude name="PSR2.Namespaces.NamespaceDeclaration" />
<type>error</type>
</rule>
<rule ref="Squiz">
<exclude name="Squiz" />
</rule>
<!-- Check var names, but we don't want leading underscores for private vars -->
<rule ref="Squiz.NamingConventions.ValidVariableName" />
<rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<severity>0</severity>
</rule>
<!-- Have 12 chars padding maximum and always show as errors -->
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="maxPadding" value="12"/>
<property name="error" value="true"/>
</properties>
</rule>
</ruleset>