|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<ruleset |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd" |
| 5 | + name="Rabiloo" |
| 6 | +> |
| 7 | + <description>Rabiloo's PHP coding standard</description> |
| 8 | + |
| 9 | + <!-- display progress --> |
| 10 | + <arg value="p"/> |
| 11 | + |
| 12 | + <!-- Show sniff codes in all reports --> |
| 13 | + <arg value= "s"/> |
| 14 | + |
| 15 | + <!-- use colors in output --> |
| 16 | + <arg name="colors"/> |
| 17 | + |
| 18 | + <!-- Paths to check --> |
| 19 | + <file>app</file> |
| 20 | + <file>bootstrap</file> |
| 21 | + <file>config</file> |
| 22 | + <file>database</file> |
| 23 | + <file>lang</file> |
| 24 | + <file>public</file> |
| 25 | + <file>routes</file> |
| 26 | + <file>tests</file> |
| 27 | + |
| 28 | + <exclude-pattern>*/*.js</exclude-pattern> |
| 29 | + <exclude-pattern>*/*.css</exclude-pattern> |
| 30 | + <exclude-pattern>*/*.xml</exclude-pattern> |
| 31 | + <exclude-pattern>*/*.blade.php</exclude-pattern> |
| 32 | + <exclude-pattern>bootstrap/cache</exclude-pattern> |
| 33 | + |
| 34 | + <rule ref="vendor/rabiloo/coding-standard/ruleset.xml"/> |
| 35 | + |
| 36 | + <!-- Exclude some PHP files, it haven't class definitions --> |
| 37 | + <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace"> |
| 38 | + <exclude-pattern>database/migrations/*</exclude-pattern> |
| 39 | + </rule> |
| 40 | + |
| 41 | + <!-- Exclude test classes, it can have not CamelCapsMethodName --> |
| 42 | + <rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"> |
| 43 | + <exclude-pattern>tests/*/*Test.php</exclude-pattern> |
| 44 | + </rule> |
| 45 | + |
| 46 | + <!-- Exclude some PHP config files --> |
| 47 | + <rule ref="PSR1.Files.SideEffects"> |
| 48 | + <exclude-pattern>bootstrap/*</exclude-pattern> |
| 49 | + <exclude-pattern>config/*</exclude-pattern> |
| 50 | + <exclude-pattern>lang/*</exclude-pattern> |
| 51 | + <exclude-pattern>public/*</exclude-pattern> |
| 52 | + <exclude-pattern>routes/*</exclude-pattern> |
| 53 | + </rule> |
| 54 | +</ruleset> |
0 commit comments