Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
37 lines (30 loc) · 1.53 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
37 lines (30 loc) · 1.53 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
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<ruleset name="AWS SDK for PHP">
<description>Checks PSR-12 formatting for SDK source files.</description>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg name="report" value="full"/>
<arg name="warning-severity" value="0"/>
<arg value="s"/>
<exclude-pattern>*/src/data/*</exclude-pattern>
<rule ref="PSR12">
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"/>
<!-- Replaced by AwsSdk sniffs that also allow an empty `{}` body. -->
<exclude name="PSR2.Classes.ClassDeclaration"/>
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace"/>
</rule>
<rule ref="./.github/phpcs/AwsSdk/Sniffs/Classes/ClassDeclarationSniff.php"/>
<rule ref="./.github/phpcs/AwsSdk/Sniffs/ControlStructures/FirstConditionSameLineSniff.php"/>
<rule ref="./.github/phpcs/AwsSdk/Sniffs/Functions/MultiLineFunctionDeclarationBraceSniff.php"/>
<rule ref="./.github/phpcs/AwsSdk/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php"/>
<rule ref="PSR12.Files.FileHeader.SpacingAfterBlock">
<exclude-pattern>*/src/*</exclude-pattern>
</rule>
<rule ref="AwsSdk.Classes.ClassDeclaration.OpenBraceNewLine">
<exclude-pattern>*/src/*/*Client.php</exclude-pattern>
</rule>
<rule ref="AwsSdk.WhiteSpace.ScopeClosingBrace.ContentBefore">
<exclude-pattern>*/src/*/*Client.php</exclude-pattern>
</rule>
</ruleset>