Skip to content

Commit

Permalink
Group doc for MissingShort and SpacingBeforeShort together
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoprimo committed Feb 29, 2024
1 parent 1c68da9 commit 500f492
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions src/Standards/Generic/Docs/Commenting/DocCommentStandard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,40 +72,23 @@
</code_comparison>
<standard>
<![CDATA[
The DocBlock must have a short description.
The DocBlock must have a short description, and it must be on the first line.
]]>
</standard>
<code_comparison>
<code title="Valid: DocBlock with a short description.">
<code title="Valid: DocBlock with a short description on the first line.">
<![CDATA[
/**
* <em>Short description.</em>
*/
]]>
</code>
<code title="Invalid: DocBlock without a short description.">
<code title="Invalid: DocBlock without a short description or short description not on the first line.">
<![CDATA[
/**
* <em></em>@return int
*/
]]>
</code>
</code_comparison>
<standard>
<![CDATA[
Short description must be on the first line of the DocBlock.
]]>
</standard>
<code_comparison>
<code title="Valid: No blank lines before the short description.">
<![CDATA[
/**<em></em>
* Short description.
*/
]]>
</code>
<code title="Invalid: Blank lines before the short description.">
<![CDATA[
/**
<em> *</em>
* Short description.
Expand Down

0 comments on commit 500f492

Please sign in to comment.