39 lines
1.1 KiB
XML
39 lines
1.1 KiB
XML
|
<?xml version="1.0"?>
|
||
|
<ruleset name="PHP_CodeSniffer">
|
||
|
<description>The coding standard for PHP_CodeSniffer itself.</description>
|
||
|
|
||
|
<file>src</file>
|
||
|
<exclude-pattern>*/Standards/*/Tests/*\.(inc|css|js)</exclude-pattern>
|
||
|
<arg name="colors" />
|
||
|
<arg value="np"/>
|
||
|
<arg value="s"/>
|
||
|
<!-- Don't hide tokenizer exceptions -->
|
||
|
<rule ref="Internal.Tokenizer.Exception">
|
||
|
<type>error</type>
|
||
|
</rule>
|
||
|
<rule ref="PSR1">
|
||
|
</rule>
|
||
|
<rule ref="PSR2">
|
||
|
<!--<exclude name="PSR2.Namespaces.NamespaceDeclaration" />-->
|
||
|
<exclude name="PSR2.Namespaces.UseDeclaration.MultipleDeclarations" />
|
||
|
</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>
|