xref: /dokuwiki/_test/phpcs.xml (revision 4b3d1701df2b99bcd239b0ab8e55217f523ea8df)
1<?xml version="1.0"?>
2<ruleset name="DokuWiki Coding Standard Standard" namespace="DokuWiki\CS\Standard">
3    <description>Coding Standard used for DokuWiki</description>
4    <file>../inc</file>
5    <file>../lib</file>
6    <file>../bin</file>
7    <file>../doku.php</file>
8    <file>../index.php</file>
9    <file>../feed.php</file>
10    <file>../install.php</file>
11    <exclude-pattern>*/lang/*/lang.php</exclude-pattern>
12    <exclude-pattern>*/lang/*/settings.php</exclude-pattern>
13    <exclude-pattern>*/_test/*</exclude-pattern>
14    <arg name="colors"/>
15    <arg value="sp"/>
16    <arg name="extensions" value="php"/>
17    <!-- rules on top of PSR-2 -->
18    <rule ref="PSR2">
19        <!-- the following rule is not in PSR-2 and breaks the guardian pattern -->
20        <exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed"/>
21
22        <!-- we have lots of legacy classes without name spaces -->
23        <exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
24    </rule>
25    <!-- configure additional rules here later -->
26</ruleset>
27