Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit a103efa

Browse files
committed
Added exclusions - covered by ScopeIndent sniff
1 parent c2d224c commit a103efa

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/ZendCodingStandard/ruleset.xml

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
<!-- Replaced by WebimpressCodingStandard.WhiteSpace.CommaSpacing -->
1919
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeComma"/>
2020
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.NoSpaceBeforeArg"/>
21+
<!-- Replaced by WebimpressCodingStandard.WhiteSpace.ScopeIndent -->
22+
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
23+
<exclude name="PSR2.Methods.FunctionCallSignature.Indent"/>
24+
<exclude name="PSR2.Methods.FunctionCallSignature.OpeningIndent"/>
25+
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.Indent"/>
26+
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.Indent"/>
2127
</rule>
2228

2329
<!-- Force array element indentation with 4 spaces -->
@@ -82,6 +88,7 @@
8288
<!-- Only one blank line allowed -->
8389
<rule ref="WebimpressCodingStandard.WhiteSpace.BlankLine"/>
8490

91+
<!-- Indents formatting -->
8592
<rule ref="WebimpressCodingStandard.WhiteSpace.ScopeIndent">
8693
<properties>
8794
<property name="alignObjectOperators" value="false"></property>

test/expected-report.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ test/fixable/statement-alignment.php 19 0
3333
test/fixable/test-case.php 4 0
3434
test/fixable/traits-uses.php 9 0
3535
test/fixable/UnusedVariables.php 1 0
36-
test/fixable/useless-semicolon.php 9 0
36+
test/fixable/useless-semicolon.php 8 0
3737
test/fixable/variable-names.php 5 2
3838
test/fixable/visibility-declaration.php 1 0
3939
----------------------------------------------------------------------
40-
A TOTAL OF 427 ERRORS AND 6 WARNINGS WERE FOUND IN 33 FILES
40+
A TOTAL OF 426 ERRORS AND 6 WARNINGS WERE FOUND IN 33 FILES
4141
----------------------------------------------------------------------
42-
PHPCBF CAN FIX 365 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
42+
PHPCBF CAN FIX 364 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
4343
----------------------------------------------------------------------
4444

4545

0 commit comments

Comments
 (0)