Created
October 6, 2019 09:46
-
-
Save minthemiddle/9e7bb4897f3a46f18a4751292d3e7429 to your computer and use it in GitHub Desktop.
Laravel (5/6) config template for PHP Sniffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <ruleset name="PHP_CodeSniffer"> | |
| <description>The coding standard for this project.</description> | |
| <rule ref="PSR2"/> | |
| <file>app</file> | |
| <file>bootstrap</file> | |
| <file>config</file> | |
| <file>database</file> | |
| <file>resources</file> | |
| <file>routes</file> | |
| <file>tests</file> | |
| <exclude-pattern>bootstrap/cache/*</exclude-pattern> | |
| <exclude-pattern>bootstrap/autoload.php</exclude-pattern> | |
| <exclude-pattern>*/migrations/*</exclude-pattern> | |
| <exclude-pattern>*/seeds/*</exclude-pattern> | |
| <exclude-pattern>*.blade.php</exclude-pattern> | |
| <exclude-pattern>*.js</exclude-pattern> | |
| <!-- Allow snake_case test names --> | |
| <!-- see: https://laracasts.com/discuss/channels/testing/method-naming-conventions --> | |
| <rule ref="PSR1.Methods.CamelCapsMethodName"> | |
| <exclude-pattern>*Test.php</exclude-pattern> | |
| </rule> | |
| <!-- Show progression --> | |
| <arg value="p"/> | |
| </ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment