Last active
December 21, 2023 09:50
-
-
Save johndodev/3e88c670dfacd835052fbc4ec6850688 to your computer and use it in GitHub Desktop.
Exemple de .phpcs.xml
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" 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