Skip to content

Commit 764c553

Browse files
committed
fix: allow doc comments without variable name above return statements
1 parent c0d3cd8 commit 764c553

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Ramsey/ruleset.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@
178178
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment"/>
179179

180180
<!-- Report invalid format of inline phpDocs with @var -->
181-
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/>
181+
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration">
182+
<properties>
183+
<property name="allowDocCommentAboveReturn" value="true"/>
184+
</properties>
185+
</rule>
182186

183187
<!-- Report use of the useless @inheritDoc annotation -->
184188
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>

0 commit comments

Comments
 (0)