Created
February 29, 2024 13:20
-
-
Save beneverard/4f5cb37c81817293e73a85415021657b to your computer and use it in GitHub Desktop.
Laravel PHPCS configuration file
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>PHP Code Sniffer configuration file.</description> | |
<!-- inspired from this gist --> | |
<!-- https://gist.github.com/ulcuber/e4ad20e24e0282b48e870bc54a9c592c --> | |
<file>app</file> | |
<file>config</file> | |
<file>resources</file> | |
<file>routes</file> | |
<file>tests</file> | |
<exclude-pattern>*/database/*</exclude-pattern> | |
<exclude-pattern>*/cache/*</exclude-pattern> | |
<exclude-pattern>*/lang/*</exclude-pattern> | |
<exclude-pattern>*/*.js</exclude-pattern> | |
<exclude-pattern>*/*.css</exclude-pattern> | |
<exclude-pattern>*/*.xml</exclude-pattern> | |
<exclude-pattern>*/*.blade.php</exclude-pattern> | |
<exclude-pattern>*/autoload.php</exclude-pattern> | |
<exclude-pattern>*/storage/*</exclude-pattern> | |
<exclude-pattern>*/docs/*</exclude-pattern> | |
<exclude-pattern>*/vendor/*</exclude-pattern> | |
<exclude-pattern>*/migrations/*</exclude-pattern> | |
<!-- Our base rule: set to PSR12--> | |
<rule ref="PSR12"/> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment