2024-08-05
This commit is contained in:
parent
8e75a421d2
commit
68b42420a3
1004 changed files with 367652 additions and 42 deletions
44
phpcs.xml
44
phpcs.xml
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml version="1.0" ?>
|
||||
<ruleset name="Roots">
|
||||
<description>Roots Coding Standards</description>
|
||||
|
||||
|
|
@ -6,7 +6,10 @@
|
|||
<file>.</file>
|
||||
|
||||
<!-- Scan only PHP files -->
|
||||
<arg name="extensions" value="php"/>
|
||||
<arg
|
||||
name="extensions"
|
||||
value="php"
|
||||
/>
|
||||
|
||||
<!-- Ignore WordPress and Composer dependencies -->
|
||||
<exclude-pattern>web/wp</exclude-pattern>
|
||||
|
|
@ -14,11 +17,42 @@
|
|||
<exclude-pattern>vendor/</exclude-pattern>
|
||||
|
||||
<!-- Show colors in console -->
|
||||
<arg value="-colors"/>
|
||||
<arg value="-colors" />
|
||||
|
||||
<!-- Show sniff codes in all reports -->
|
||||
<arg value="ns"/>
|
||||
<arg value="ns" />
|
||||
|
||||
<!-- Use PSR-2 as a base -->
|
||||
<rule ref="PSR2"/>
|
||||
<rule ref="PSR2" />
|
||||
|
||||
<!-- Désactivate certaines règles -->
|
||||
<rule ref="Generic">
|
||||
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
|
||||
<exclude name="Generic.Files.EndFileNoNewline.Found" />
|
||||
<exclude name="Generic.Files.LowercasedFilename.NotFound" />
|
||||
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine" />
|
||||
<exclude name="Generic.NamingConventions.CamelCapsFunctionName.NotCamelCaps" />
|
||||
<exclude name="Generic.NamingConventions.CamelCapsFunctionName.ScopeNotCamelCaps" />
|
||||
<exclude name="Generic.PHP.ClosingPHPTag.NotFound" />
|
||||
<exclude name="Generic.PHP.UpperCaseConstant.Found" />
|
||||
<exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed" />
|
||||
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
|
||||
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
|
||||
</rule>
|
||||
<rule ref="PSR1">
|
||||
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
|
||||
</rule>
|
||||
<rule ref="PSR2">
|
||||
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />
|
||||
</rule>
|
||||
<rule ref="Squiz">
|
||||
<exclude name="Squiz.Commenting.ClosingDeclarationComment.Missing" />
|
||||
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
|
||||
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
|
||||
<exclude name="Squiz.NamingConventions.ValidFunctionName.NotCamelCaps" />
|
||||
<exclude name="Squiz.NamingConventions.ValidVariableName.NotCamelCaps" />
|
||||
<exclude name="Squiz.Strings.DoubleQuoteUsage.NotRequired" />
|
||||
<exclude name="Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeClose" />
|
||||
<exclude name="Squiz.WhiteSpace.FunctionSpacing.After" />
|
||||
</rule>
|
||||
</ruleset>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue