Welcome to mirror list, hosted at ThFree Co, Russian Federation.

phpcs.xml « tests - github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 492cf92a953774eeae7882c85444c095f7653f9b (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
<?xml version="1.0"?>
<ruleset name="MyStandard">
    <description>
        PSR2 with changes:
            * tabs instead of spaces (https://gist.github.com/gsherwood/9d22f634c57f990a7c64)
            * bracers on end of line instead new line
    </description>
    
    <!-- tabs -->
    <arg name="tab-width" value="4"/>
    <rule ref="PSR2">
        <!-- bracers -->
        <exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
        <exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />

        <!-- tabs -->
        <exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
    </rule>
    
    <!-- tabs -->
    <rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
    <rule ref="Generic.WhiteSpace.ScopeIndent">
        <properties>
            <property name="indent" value="4"/>
            <property name="tabIndent" value="true"/>
        </properties>
    </rule>

    <!-- bracers -->
    <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
    <rule ref="Generic.Classes.OpeningBraceSameLine"/>
</ruleset>