Skip to content

Instantly share code, notes, and snippets.

@Parables
Created September 11, 2021 17:47
Show Gist options
  • Save Parables/77428b5573406afb53847ffaaa1944da to your computer and use it in GitHub Desktop.
Save Parables/77428b5573406afb53847ffaaa1944da to your computer and use it in GitHub Desktop.
My custom version
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PHPCS configuration file.</description>
<!-- check all files in the app directory, feel free to add more files with:
<file>FOLDER NAME</file>
-->
<file>app</file>
<file>bootstrap</file>
<file>config</file>
<file>database</file>
<file>resources</file>
<file>routes</file>
<file>tests</file>
<!-- exclude our migrations directory from the violation check-->
<exclude-pattern>*/migrations/*</exclude-pattern>
<exclude-pattern>bootstrap/cache/*</exclude-pattern>
<exclude-pattern>bootstrap/autoload.php</exclude-pattern>
<exclude-pattern>*/seeds/*</exclude-pattern>
<exclude-pattern>*.blade.php</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<exclude-pattern>*/*.css</exclude-pattern>
<exclude-pattern>*/*.xml</exclude-pattern>
<exclude-pattern>*/storage/*</exclude-pattern>
<exclude-pattern>*/docs/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/cache/*</exclude-pattern>
<!-- Show progression -->
<arg value="p"/>
<!-- ignore warnings and display ERRORS only -->
<arg value="np" />
<!-- 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