1<?xml version="1.0"?> 2<ruleset name="DWPlugin"> 3 <description>Coding standard for DokuWiki plugin (derived from PSR-2).</description> 4 5 <!-- show report in color, with progress --> 6 <arg name="report-width" value="auto"/> 7 <arg name="colors"/> 8 <arg value="p"/> 9 10 <!-- files to process by default --> 11 <arg name="extensions" value="php"/> 12 <file>.</file> 13 <!-- Ignoring file copied verbatim from Wordpress source code --> 14 <exclude-pattern>./class-phpass.php</exclude-pattern> 15 <exclude-pattern>./lang</exclude-pattern> 16 17 <arg name="encoding" value="utf-8"/> 18 19 <rule ref="PSR12"> 20 <!-- Allow files to both declare symbols and execute code 21 Needed because of the if (!defined('DOKU_INC')) 22 --> 23 <exclude name="PSR1.Files.SideEffects"/> 24 25 <!-- No need for namespace --> 26 <exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/> 27 </rule> 28 29</ruleset> 30