File: phpcs.xml.dist

package info (click to toggle)
php-phpdocumentor-type-resolver 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,432 kB
  • sloc: php: 26,448; xml: 102; makefile: 50
file content (35 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<ruleset name="TypeResolver">
    <description>The coding standard for this library.</description>

    <file>src</file>
    <file>tests/unit</file>
    <exclude-pattern>*/tests/unit/Types/ContextFactoryTest\.php</exclude-pattern>
    <arg value="p"/>

    <!-- Set the minimum PHP version for PHPCompatibility.
         This should be kept in sync with the requirements in the composer.json file. -->
    <config name="testVersion" value="7.4-"/>

    <rule ref="phpDocumentor">
        <!-- Property type declarations are a PHP 7.4 feature. -->
        <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>
    </rule>

    <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
        <exclude-pattern>*/src/*/Abstract*\.php</exclude-pattern>
    </rule>

    <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
        <exclude-pattern>*/src/PseudoTypes/False_\.php</exclude-pattern>
        <exclude-pattern>*/src/PseudoTypes/True_\.php</exclude-pattern>
    </rule>

	<!-- Ignore two PHP 8.0 constants which are being polyfilled in the file using them. -->
    <rule ref="PHPCompatibility.Constants.NewConstants.t_name_qualifiedFound">
        <exclude-pattern>*/src/Types/ContextFactory\.php</exclude-pattern>
    </rule>
    <rule ref="PHPCompatibility.Constants.NewConstants.t_name_fully_qualifiedFound">
        <exclude-pattern>*/src/Types/ContextFactory\.php</exclude-pattern>
    </rule>
</ruleset>