Open tdmalone opened 6 years ago
High pri because this is likely to be affecting current work
I think this is going to be complicated to look into. I am excluding three troublesome rules for now:
<exclude name="WordPress.Arrays.ArrayIndentation.ItemNotAligned"/>
<exclude name="WordPress.Arrays.ArrayIndentation.MultiLineArrayItemNotAligned"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="exact" value="false"/>
</properties>
</rule>
Two additional rules temporarily excluded due to incorrect indentation problems:
<exclude name="PEAR.Functions.FunctionCallSignature.Indent"/>
<exclude name="PSR2.ControlStructures.SwitchDeclaration.BreakIndent"/>
Possible food for thought: https://github.com/squizlabs/PHP_CodeSniffer/issues/761 i.e. we might have conflicting indentation rules - including from upstream.
Rule:
Generic.WhiteSpace.ScopeIndent.IncorrectExact
Code:
Result:
Desired Result:
Should expect 2 spaces for the array item, and 0 for the line. It seems to be getting confused and thinking there's an extra 2 spaces there?