xref: /dokuwiki/_test/phpcs_MigrationAdjustments.xml (revision d4f83172d9533c4d84f450fe22ef630816b21d75)
1<?xml version="1.0"?>
2<ruleset name="Migration Adjustments for the DokuWiki Coding Standard Standard" namespace="DokuWiki\CS\Standard">
3    <description>These are exceptions to the Coding Standard used for DokuWiki that are intended to be removed over time.</description>
4
5    <!-- rules on top of PSR-12 -->
6    <rule ref="./phpcs.xml">
7        <!-- Rules with automatic fixes that we want to adhere to, but currently don't -->
8        <exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine"/>
9    </rule>
10
11    <!-- for now we mix declarations and execution here (mostly for defines) -->
12    <rule ref="PSR1.Files.SideEffects">
13        <exclude-pattern>*/index.php</exclude-pattern>
14        <exclude-pattern>*/inc/parserutils.php</exclude-pattern>
15        <exclude-pattern>*/inc/mail.php</exclude-pattern>
16        <exclude-pattern>*/inc/init.php</exclude-pattern>
17        <exclude-pattern>*/inc/farm.php</exclude-pattern>
18        <exclude-pattern>*/inc/fulltext.php</exclude-pattern>
19        <exclude-pattern>*/inc/pluginutils.php</exclude-pattern>
20        <exclude-pattern>*/inc/indexer.php</exclude-pattern>
21        <exclude-pattern>*/inc/Mailer.class.php</exclude-pattern>
22        <exclude-pattern>*/doku.php</exclude-pattern>
23        <exclude-pattern>*/install.php</exclude-pattern>
24        <exclude-pattern>*/inc/utf8.php</exclude-pattern>
25        <exclude-pattern>*/feed.php</exclude-pattern>
26        <exclude-pattern>*/inc/load.php</exclude-pattern>
27        <exclude-pattern>*/bin/*.php</exclude-pattern>
28        <exclude-pattern>*/lib/exe/*.php</exclude-pattern>
29    </rule>
30
31</ruleset>
32