Skip to content

Instantly share code, notes, and snippets.

@naaando
Created September 10, 2021 20:06
Show Gist options
  • Save naaando/8a033954a7ee83c6b559a01d6c7983d7 to your computer and use it in GitHub Desktop.
Save naaando/8a033954a7ee83c6b559a01d6c7983d7 to your computer and use it in GitHub Desktop.
phpcs.xml
<?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>src</file>
<!-- exclude our migrations directory from the violation check-->
<exclude-pattern>*/migrations/*</exclude-pattern>
<!-- ignore warnings and display ERRORS only -->
<arg value="np"/>
<!-- Our base rule: set to PSR12-->
<rule ref="PSR12"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="180"/>
</properties>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment