Skip to content

Instantly share code, notes, and snippets.

@beneverard
Created February 29, 2024 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beneverard/4f5cb37c81817293e73a85415021657b to your computer and use it in GitHub Desktop.
Save beneverard/4f5cb37c81817293e73a85415021657b to your computer and use it in GitHub Desktop.
Laravel PHPCS configuration file
<?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