]> git.agnieray.net Git - galette.git/blob - .phpcs.xml
Fix histroy filter
[galette.git] / .phpcs.xml
1 <?xml version="1.0"?>
2 <ruleset>
3 <description>Coding standard based on PSR12 with comments from PEAR for Galette</description>
4
5 <file>galette/lib/</file>
6 <file>galette/webroot/index.php</file>
7 <!--file>galette/webroot/installer.php</file-->
8 <file>galette/webroot/compat_test.php</file>
9 <file>galette/includes/</file>
10 <!--file>galette/install/</file-->
11 <file>tests/TestsBootstrap.php</file>
12 <file>tests/GaletteTestCase.php</file>
13 <file>tests/Galette/</file>
14 <file>tests/GaletteDbFails/</file>
15 <file>tests/GaletteUpdate/</file>
16 <file>tests/plugins/</file>
17
18 <exclude-pattern>/.git/</exclude-pattern>
19 <exclude-pattern type="relative">^galette_tcpdf_config.php$</exclude-pattern>
20
21 <arg name="warning-severity" value="0" /><!-- no warning -->
22 <arg value="p" /><!-- show progress -->
23 <arg value="s" /><!-- show sniff codes -->
24 <ini name="memory_limit" value="512M" />
25 <arg name="colors" />
26 <arg name="extensions" value="php" />
27
28 <!-- Include the whole PSR12 standard -->
29 <rule ref="PSR12"/>
30
31 <!-- Comments rules from PEAR standard -->
32 <rule ref="PEAR.Commenting.ClassComment">
33 <exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
34 <exclude name="PEAR.Commenting.ClassComment.MissingPackageTag"/>
35 <exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
36 <exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/>
37 </rule>
38 <rule ref="PEAR.Commenting.FunctionComment"/>
39 <rule ref="PEAR.Commenting.InlineComment"/>
40 <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
41 <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
42 </rule>
43 <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
44 <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
45 </rule>
46 <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
47 <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation"/>
48 <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
49 </rule>
50 </ruleset>