mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-26 12:24:50 +01:00
27 lines
1.2 KiB
XML
27 lines
1.2 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset name="PHP_CodeSniffer">
|
|
<config name="installed_paths" value="../../slevomat/coding-standard"/>
|
|
<rule ref="PSR12" />
|
|
<!-- 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>
|
|
|
|
<rule ref="PSR2.Namespaces.UseDeclaration">
|
|
<exclude-pattern>*</exclude-pattern>
|
|
</rule>
|
|
|
|
<file>src/</file>
|
|
<file>tests</file>
|
|
<exclude-pattern>src/cache/</exclude-pattern>
|
|
<exclude-pattern>tests/_support/</exclude-pattern>
|
|
<exclude-pattern>tests/Support/</exclude-pattern>
|
|
</ruleset>
|