[phpcs] Add check for concatenation operator spacing
The concatenation operator should have one space before and after
This commit is contained in:
parent
b9f6bc8197
commit
e295dc5a79
1 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,13 @@
|
||||||
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
|
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
|
||||||
<!-- Do not override methods to call their parent -->
|
<!-- Do not override methods to call their parent -->
|
||||||
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
|
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
|
||||||
|
<!-- Make sure the concatenation operator has spaces around it -->
|
||||||
|
<rule ref="Squiz.Strings.ConcatenationSpacing">
|
||||||
|
<properties>
|
||||||
|
<property name="spacing" value="1"/>
|
||||||
|
<property name="ignoreNewlines" value="true"/>
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
<!-- One line should not have more than 80 characters -->
|
<!-- One line should not have more than 80 characters -->
|
||||||
<!-- One line must never exceed 120 characters -->
|
<!-- One line must never exceed 120 characters -->
|
||||||
<rule ref="Generic.Files.LineLength">
|
<rule ref="Generic.Files.LineLength">
|
||||||
|
|
Loading…
Reference in a new issue