Skip to content

Commit 76f65df

Browse files
committed
adjust checkstyle rule to allow for TODO comments if they have a link associated
1 parent 84702e8 commit 76f65df

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

checkstyle.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@
194194
<!-- See https://checkstyle.org/config_misc.html -->
195195
<module name="ArrayTypeStyle"/>
196196
<!--<module name="FinalParameters"/>-->
197-
<module name="TodoComment"/>
197+
<module name="TodoComment">
198+
<!-- allow any form of TODO comments if they have a link associated -->
199+
<property name="format" value="(?i)^\s*TO[-_]?DO:?(?!.*https?:\/\/)"/>
200+
</module>
198201
<module name="UpperEll"/>
199202

200203
<!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->

0 commit comments

Comments
 (0)