File: RuleInclusionTest.xml

package info (click to toggle)
php-codesniffer 3.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,988 kB
  • sloc: php: 67,146; xml: 12,380; pascal: 7,999; javascript: 2,078; makefile: 9; sh: 8
file content (46 lines) | stat: -rw-r--r-- 1,445 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="RuleInclusionTest" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">

    <rule ref="PSR1">
        <properties>
            <property name="setforallsniffs" value="true" />
        </properties>
    </rule>

    <rule ref="Zend.NamingConventions">
        <properties>
            <property name="setforallincategory" value="true" />
        </properties>
    </rule>

    <rule ref="Generic.Arrays.ArrayIndent">
        <properties>
            <property name="indent" value="2" />
        </properties>
    </rule>

    <rule ref="Generic.Metrics.CyclomaticComplexity.MaxExceeded">
        <properties>
            <property name="complexity" value="50" />
        </properties>
    </rule>

    <rule ref="./src/Standards/Generic/Sniffs/Files/LineLengthSniff.php">
        <properties>
            <property name="lineLimit" value="10" />
        </properties>
    </rule>

    <rule ref="./../%path_root_dir%/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php">
        <properties>
            <property name="strict" value="false" />
        </properties>
    </rule>

    <rule ref="./RuleInclusionTest-include.xml">
        <properties>
            <property name="setforsniffsinincludedruleset" value="true" />
        </properties>
    </rule>

</ruleset>