Skip to content

Commit 22d0415

Browse files
committed
Add guidance for LastLineIndent.
1 parent cb43ef7 commit 22d0415

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

src/Standards/Squiz/Docs/Commenting/BlockCommentStandard.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,39 @@ echo 'Content';
242242
]]>
243243
</code>
244244
</code_comparison>
245+
<standard>
246+
If asterisks are used, the closer's asterisk should be aligned with these. Otherwise, the closer's asterisk should be aligned with the opener's slash.
247+
</standard>
248+
<code_comparison>
249+
<code title="Valid: The closer's asterisk is aligned with other asterisks.">
250+
<![CDATA[
251+
/*
252+
* A block comment
253+
<em> </em>*/
254+
]]>
255+
</code>
256+
<code title="Invalid: The closer's asterisk is not aligned with other asterisks.">
257+
<![CDATA[
258+
/*
259+
* A block comment.
260+
<em></em>*/
261+
]]>
262+
</code>
263+
</code_comparison>
264+
<code_comparison>
265+
<code title="Valid: The closer's asterisk is aligned with the opener's slash.">
266+
<![CDATA[
267+
/*
268+
A block comment.
269+
<em></em>*/
270+
]]>
271+
</code>
272+
<code title="Invalid: The closer's asterisk is not aligned with the opener's slash.">
273+
<![CDATA[
274+
/*
275+
A block comment.
276+
<em> </em>*/
277+
]]>
278+
</code>
279+
</code_comparison>
245280
</documentation>

0 commit comments

Comments
 (0)