Skip to content

Commit 3fc0238

Browse files
authored
Merge pull request #153 from photodude/patch-8
[PHPCS2] add note to message adjustments Note: the autofixer will convert spaces to tabs
2 parents fb14bf1 + b1c3fb9 commit 3fc0238

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Joomla/ruleset.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<properties>
7070
<property name="indent" value="4"/>
7171
</properties>
72-
<message>Multi-line IF statement not indented correctly; expected %s tabs but found %s</message>
72+
<message>Multi-line IF statement not indented correctly; expected %s spaces but found %s. Note: the autofixer will convert spaces to tabs</message>
7373
</rule>
7474
<rule ref="PEAR.Formatting.MultiLineAssignment" />
7575
<rule ref="PEAR.Functions.FunctionCallSignature">
@@ -83,7 +83,7 @@
8383
<properties>
8484
<property name="indent" value="4"/>
8585
</properties>
86-
<message>Multi-line function call not indented correctly; expected %s tabs but found %s</message>
86+
<message>Multi-line function call not indented correctly; expected %s spaces but found %s. Note: the autofixer will convert spaces to tabs</message>
8787
</rule>
8888
<rule ref="PEAR.Functions.FunctionDeclaration">
8989
<properties>
@@ -95,7 +95,7 @@
9595
<properties>
9696
<property name="indent" value="4"/>
9797
</properties>
98-
<message>Multi-line function declaration not indented correctly; expected %s tabs but found %s</message>
98+
<message>Multi-line function declaration not indented correctly; expected %s spaces but found %s. Note: the autofixer will convert spaces to tabs</message>
9999
</rule>
100100
<rule ref="PEAR.Functions.ValidDefaultValue" />
101101
<rule ref="PEAR.NamingConventions.ValidClassName" />
@@ -108,7 +108,7 @@
108108
<properties>
109109
<property name="indent" value="4"/>
110110
</properties>
111-
<message>Object operator not indented correctly; expected %s tabs but found %s</message>
111+
<message>Object operator not indented correctly; expected %s spaces but found %s. Note: the autofixer will convert spaces to tabs</message>
112112
</rule>
113113

114114
<!-- Include some additional sniffs from the PSR2 standard -->
@@ -159,6 +159,9 @@
159159
</properties>
160160
</rule>
161161
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace" />
162+
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace.Indent">
163+
<message>Closing brace indented incorrectly; expected %s spaces, found %s. Note: the autofixer will convert spaces to tabs</message>
164+
</rule>
162165
<rule ref="Squiz.WhiteSpace.CastSpacing" />
163166
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing">
164167
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.LineAfterClose" />

0 commit comments

Comments
 (0)