Skip to content

Commit 53402a5

Browse files
committed
Make SingleLine guidance second.
1 parent 22d0415 commit 53402a5

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,25 @@
4141
</code_comparison>
4242
<standard>
4343
<![CDATA[
44+
Single line block comments are not allowed.
45+
]]>
46+
</standard>
47+
<code_comparison>
48+
<code title="Valid: Multi-line block comment.">
49+
<![CDATA[
50+
/*
51+
A block comment.
52+
*/
53+
]]>
54+
</code>
55+
<code title="Invalid: Single line block comment.">
56+
<![CDATA[
57+
<em>/* A block comment. */</em>
58+
]]>
59+
</code>
60+
</code_comparison>
61+
<standard>
62+
<![CDATA[
4463
If there are no asterisks at the start of each line, the contents of the docblock should be indented by at least 4 spaces.
4564
]]>
4665
</standard>
@@ -112,25 +131,6 @@
112131
</code_comparison>
113132
<standard>
114133
<![CDATA[
115-
Single line block comments are not allowed.
116-
]]>
117-
</standard>
118-
<code_comparison>
119-
<code title="Valid: Multi-line block comment.">
120-
<![CDATA[
121-
/*
122-
A block comment.
123-
*/
124-
]]>
125-
</code>
126-
<code title="Invalid: Single line block comment.">
127-
<![CDATA[
128-
<em>/* A block comment. */</em>
129-
]]>
130-
</code>
131-
</code_comparison>
132-
<standard>
133-
<![CDATA[
134134
Block comment text should start on a new line immediately after the opener.
135135
]]>
136136
</standard>

0 commit comments

Comments
 (0)