Skip to content

Commit 036c334

Browse files
🐛 Ignore indent in doc
1 parent 8171e4d commit 036c334

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

SymfonyCustom/ruleset.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@
7979
</rule>
8080
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
8181

82-
<!-- Others -->
83-
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
82+
<rule ref="Squiz.Commenting.DocCommentAlignment">
83+
<!-- Allow to indent special annotations like @ORM\AttributeOverride -->
84+
<exclude name="Squiz.Commenting.DocCommentAlignment.SpaceAfterStar"/>
85+
</rule>
8486
<rule ref="Generic.PHP.ForbiddenFunctions"/>
8587
<rule ref="Squiz.PHP.DiscouragedFunctions"/>
8688
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>

docs/standards.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ we do not respect this rule:
141141
- DocComment should be correctly indented
142142

143143
```
144-
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
144+
<rule ref="Squiz.Commenting.DocCommentAlignment">
145+
<exclude name="Squiz.Commenting.DocCommentAlignment.SpaceAfterStar"/>
146+
</rule>
145147
```
146148

147149
### Custom

0 commit comments

Comments
 (0)