34 lines
1.1 KiB
XML
34 lines
1.1 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset name="Firefly Import Preprocessor Code Standard">
|
|
<description>PSR-12 Code Standard for Firefly Import Preprocessor Project</description>
|
|
|
|
<!-- Include PSR-12 -->
|
|
<rule ref="PSR12"/>
|
|
|
|
<!-- Exclude vendor and tests -->
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
<exclude-pattern>*/tests/*</exclude-pattern>
|
|
|
|
<!-- File patterns to check -->
|
|
<arg name="extensions" value="php"/>
|
|
<arg name="colors"/>
|
|
<arg name="report" value="full"/>
|
|
<arg name="report" value="summary"/>
|
|
|
|
<!-- Line length -->
|
|
<rule ref="Generic.Files.LineLength">
|
|
<properties>
|
|
<property name="lineLimit" value="120"/>
|
|
<property name="absoluteLineLimit" value="150"/>
|
|
</properties>
|
|
</rule>
|
|
|
|
<!-- Avoid PHP short tags -->
|
|
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
|
|
|
<!-- Spacing around operators -->
|
|
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
|
|
|
|
<!-- Enforce spaces for indentation (no tabs) -->
|
|
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
|
|
</ruleset> |