2025-11-04
This commit is contained in:
parent
e4eaf6404a
commit
71c35a497f
1626 changed files with 5652 additions and 1933 deletions
41
phpcs.xml
41
phpcs.xml
|
|
@ -12,9 +12,12 @@
|
|||
/>
|
||||
|
||||
<!-- Ignore WordPress and Composer dependencies -->
|
||||
<exclude-pattern>web/wp</exclude-pattern>
|
||||
<exclude-pattern>web/app/themes/twentytwentyfour/</exclude-pattern>
|
||||
<exclude-pattern>vendor/</exclude-pattern>
|
||||
<exclude-pattern>web/app/languages/</exclude-pattern>
|
||||
<exclude-pattern>web/app/mu-plugins/</exclude-pattern>
|
||||
<exclude-pattern>web/app/plugins/</exclude-pattern>
|
||||
<exclude-pattern>web/app/themes/twentytwentyfour/</exclude-pattern>
|
||||
<exclude-pattern>web/wp</exclude-pattern>
|
||||
|
||||
<!-- Show colors in console -->
|
||||
<arg value="-colors" />
|
||||
|
|
@ -22,37 +25,5 @@
|
|||
<!-- Show sniff codes in all reports -->
|
||||
<arg value="ns" />
|
||||
|
||||
<!-- Use PSR-2 as a base -->
|
||||
<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>
|
||||
<rule ref="Squiz" />
|
||||
</ruleset>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue