-
-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathphpcs.xml
More file actions
25 lines (25 loc) · 1.44 KB
/
phpcs.xml
File metadata and controls
25 lines (25 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0"?>
<ruleset>
<rule ref="PSR12">
<!-- swerve these checks until Textpattern 5 is nearer -->
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<!-- affects RPC only? -->
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<exclude name="PSR2.Methods.FunctionCallSignature.MultipleArguments"/>
<exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
<exclude name="Squiz.Scope.MethodScope.Missing"/>
<!-- hand wavey formatting things that could be done sooner -->
<exclude name="Generic.Formatting.DisallowMultipleStatements.SameLine"/>
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction"/>
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore"/>
</rule>
<file>./</file>
<exclude-pattern>*\.(css|js)$</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>