2016-11-02 07:29:00 +01:00
|
|
|
<?xml version="1.0"?>
|
2021-06-08 04:55:21 +02:00
|
|
|
<ruleset
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
|
|
|
|
name="Psalm coding standard"
|
|
|
|
>
|
2019-06-26 22:52:29 +02:00
|
|
|
<config name="installed_paths" value="../../slevomat/coding-standard"/>
|
2016-11-02 07:29:00 +01:00
|
|
|
<rule ref="PSR2" />
|
2019-06-26 22:52:29 +02:00
|
|
|
<!-- Forbid usage of a function or a class constant via fallback global name -->
|
|
|
|
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
|
|
|
|
<properties>
|
2021-06-08 04:55:21 +02:00
|
|
|
<property name="allowFallbackGlobalConstants" value="false"/>
|
|
|
|
<property name="allowFallbackGlobalFunctions" value="false"/>
|
|
|
|
<property name="allowFullyQualifiedGlobalConstants" value="true"/>
|
|
|
|
<property name="allowFullyQualifiedGlobalFunctions" value="true"/>
|
|
|
|
<property name="allowFullyQualifiedGlobalClasses" value="true"/>
|
2019-06-26 22:52:29 +02:00
|
|
|
</properties>
|
|
|
|
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName"/>
|
|
|
|
</rule>
|
2016-11-02 07:29:00 +01:00
|
|
|
|
2021-05-03 23:22:15 +02:00
|
|
|
<rule ref="Generic.Files.LineLength">
|
|
|
|
<exclude-pattern>tests</exclude-pattern>
|
|
|
|
<exclude-pattern>src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
<rule ref="PSR2.Namespaces.UseDeclaration">
|
|
|
|
<exclude-pattern>*</exclude-pattern>
|
|
|
|
</rule>
|
|
|
|
|
|
|
|
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
|
|
|
|
<properties>
|
2021-06-08 04:55:21 +02:00
|
|
|
<property name="searchAnnotations" value="true"/>
|
|
|
|
</properties>
|
|
|
|
</rule>
|
|
|
|
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
|
|
|
|
<properties>
|
|
|
|
<property name="caseSensitive" value="true" />
|
|
|
|
</properties>
|
|
|
|
</rule>
|
|
|
|
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing">
|
|
|
|
<properties>
|
|
|
|
<property name="linesCountBetweenUseTypes" value="1" />
|
2021-05-03 23:22:15 +02:00
|
|
|
</properties>
|
|
|
|
</rule>
|
2021-11-07 07:47:33 +01:00
|
|
|
<rule ref="Squiz.Classes.SelfMemberReference" />
|
2016-11-02 07:29:00 +01:00
|
|
|
<file>bin/</file>
|
|
|
|
<file>src/</file>
|
|
|
|
<file>tests/</file>
|
|
|
|
|
2018-11-06 03:57:36 +01:00
|
|
|
<exclude-pattern>src/Psalm/Internal/Visitor/SimpleNameResolver.php</exclude-pattern>
|
2017-04-28 06:31:55 +02:00
|
|
|
|
|
|
|
<!-- These are just examples and stub classes/files, so it doesn't really matter if they're PSR-2 compliant. -->
|
2018-11-06 03:57:36 +01:00
|
|
|
<exclude-pattern>src/Psalm/Internal/Stubs/</exclude-pattern>
|
2019-05-10 01:19:33 +02:00
|
|
|
<exclude-pattern>tests/fixtures/</exclude-pattern>
|
2017-01-15 01:06:58 +01:00
|
|
|
</ruleset>
|