Skip to content

Instantly share code, notes, and snippets.

@johndodev
Last active December 21, 2023 09:50
Show Gist options
  • Save johndodev/3e88c670dfacd835052fbc4ec6850688 to your computer and use it in GitHub Desktop.
Save johndodev/3e88c670dfacd835052fbc4ec6850688 to your computer and use it in GitHub Desktop.
Exemple de .phpcs.xml
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Mesresa Custom standard">
<arg name="basepath" value="."/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg value="sp"/>
<file>src/</file>
<file>public/</file>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.TooLong"/>
</rule>
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
<!-- Custom rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="dd" value="null"/>
<element key="die" value="null"/>
</property>
</properties>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment