Skip to content

Commit b8393cf

Browse files
committed
Allow partial sentences in exception comments
1 parent 05e888c commit b8393cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Unleashed/ruleset.xml

+2
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,8 @@
464464
<exclude name="Squiz.Commenting.FunctionComment.ParamNameNoMatch"/>
465465
<!-- Doesn't respect inheritance -->
466466
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/>
467+
<!-- Comments don't have to be sentences -->
468+
<exclude name="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>
467469
<!-- `@throws` lines can often be read as a sentence,
468470
i.e. `@throws RuntimeException if the file could not be written.` -->
469471
<exclude name="Squiz.Commenting.FunctionComment.ThrowsNotCapital"/>

0 commit comments

Comments
 (0)