engelsystem/.phpcs.xml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.8 KiB
XML
Raw Normal View History

2019-11-12 22:24:06 +01:00
<?xml version="1.0"?>
<ruleset>
<description>Engelsystem PHP coding standard</description>
<file>config</file>
<file>db</file>
2022-10-18 19:15:22 +02:00
<file>includes</file>
2019-11-12 22:24:06 +01:00
<file>public/index.php</file>
<file>src</file>
<file>tests</file>
2022-10-18 19:15:22 +02:00
<exclude-pattern>/config/config.php</exclude-pattern>
2019-11-12 22:24:06 +01:00
<rule ref="PSR12" />
2022-04-16 10:38:28 +02:00
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
<properties>
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true" />
</properties>
2022-10-18 19:15:22 +02:00
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>/includes</exclude-pattern>
</rule>
2022-04-16 10:38:28 +02:00
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
2022-10-18 19:15:22 +02:00
<exclude-pattern>/includes</exclude-pattern>
2022-04-16 10:38:28 +02:00
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" />
2022-10-18 19:15:22 +02:00
</rule>
2022-04-16 10:38:28 +02:00
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
2022-10-18 19:15:22 +02:00
<exclude-pattern>/includes</exclude-pattern>
2022-04-16 10:38:28 +02:00
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
</rule>
2022-04-16 10:38:28 +02:00
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
2022-10-18 19:15:22 +02:00
<exclude-pattern>/includes</exclude-pattern>
2022-04-16 10:38:28 +02:00
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
</rule>
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion" />
2022-04-16 10:38:28 +02:00
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment" />
2022-12-15 20:20:33 +01:00
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment" />
2019-11-12 22:24:06 +01:00
</ruleset>