2016-11-02 07:29:00 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<ruleset name="PHP_CodeSniffer">
|
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>
|
|
|
|
<property name="allowFallbackGlobalConstants" type="boolean" value="false"/>
|
|
|
|
<property name="allowFallbackGlobalFunctions" type="boolean" value="false"/>
|
|
|
|
<property name="allowFullyQualifiedGlobalConstants" type="boolean" value="true"/>
|
|
|
|
<property name="allowFullyQualifiedGlobalFunctions" type="boolean" value="true"/>
|
|
|
|
<property name="allowFullyQualifiedGlobalClasses" type="boolean" value="true"/>
|
|
|
|
</properties>
|
|
|
|
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName"/>
|
|
|
|
</rule>
|
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>
|
2018-04-13 04:40:47 +02:00
|
|
|
<rule ref="Generic.Files.LineLength">
|
|
|
|
<exclude-pattern>tests</exclude-pattern>
|
2019-11-04 03:27:40 +01:00
|
|
|
<exclude-pattern>src/Psalm/Internal/Type/UnionTemplateHandler.php</exclude-pattern>
|
2018-10-17 21:52:26 +02:00
|
|
|
</rule>
|
|
|
|
|
|
|
|
<rule ref="PSR2.Namespaces.UseDeclaration">
|
|
|
|
<exclude-pattern>*</exclude-pattern>
|
|
|
|
</rule>
|
2017-01-15 01:06:58 +01:00
|
|
|
</ruleset>
|