summaryrefslogtreecommitdiffstats
path: root/.phpcs.xml
blob: 726def3633e19bd25397d8939658426226a87f0c (plain)
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
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
    <description>Sniff our code a while</description>

    <file>./</file>

    <exclude-pattern>vendor/*</exclude-pattern>

    <arg value="wps"/>
    <arg name="report-width" value="auto"/>
    <arg name="report-full"/>
    <arg name="report-gitblame"/>
    <arg name="report-summary"/>
    <arg name="encoding" value="UTF-8"/>
    <arg name="extensions" value="php"/>

    <rule ref="PSR2"/>

    <rule ref="Generic.Files.LineLength">
        <properties>
            <property name="lineLimit" value="120"/>
            <property name="absoluteLineLimit" value="0"/>
        </properties>
    </rule>

    <rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
        <exclude-pattern>library/X509/SqlFilter\.php</exclude-pattern>
    </rule>

    <rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
        <exclude-pattern>library/X509/ProvidedHook/x509ImportSource\.php</exclude-pattern>
    </rule>
</ruleset>