2020-10-14 22:19:31 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<ruleset name="AzuraCast">
|
|
|
|
<description>The AzuraCast PHP coding standard.</description>
|
|
|
|
|
|
|
|
<file>src</file>
|
|
|
|
|
|
|
|
<exclude-pattern>src/Tests/*$</exclude-pattern>
|
|
|
|
|
|
|
|
<arg name="basepath" value="."/>
|
2020-12-07 07:19:28 +00:00
|
|
|
<arg name="extensions" value="php"/>
|
2020-10-14 22:19:31 +00:00
|
|
|
<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>
|
2021-07-08 20:03:54 +00:00
|
|
|
<exclude-pattern>src/Installer/EnvFiles/*.php</exclude-pattern>
|
2020-10-14 22:19:31 +00:00
|
|
|
</rule>
|
|
|
|
|
2021-07-19 05:53:45 +00:00
|
|
|
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
|
|
|
|
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
|
|
|
|
</rule>
|
|
|
|
|
2020-10-14 22:19:31 +00:00
|
|
|
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
|
|
|
|
|
|
|
|
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
|
|
|
|
<exclude-pattern>src/Entity/Migration/*$</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
</ruleset>
|