AzuraCast/phpcs.xml

47 lines
1.6 KiB
XML
Executable File

<?xml version="1.0"?>
<ruleset name="AzuraCast">
<description>The AzuraCast PHP coding standard.</description>
<file>bin</file>
<file>config</file>
<file>src</file>
<file>templates</file>
<file>web</file>
<exclude-pattern>src/Tests/*$</exclude-pattern>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<!-- relative path from PHPCS source location -->
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<rule ref="PSR12"/>
<!--
even though PSR12 defines the soft limit for line length at 120
we have a lot of line that barely exceed that, thus causing warnings
-->
<rule ref="Generic.Files.LineLength">
<exclude-pattern>src/Entity/Migration/*$</exclude-pattern>
<!--
It's not very practical to check for the line length here since the "solutions" to the
warnings would make the code partly less readable
-->
<exclude-pattern>src/Radio/Backend/Liquidsoap/ConfigWriter.php</exclude-pattern>
<exclude-pattern>src/Installer/EnvFiles/*.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<exclude-pattern>src/Entity/Migration/*$</exclude-pattern>
</rule>
</ruleset>