Skip to content

Commit 5ea7a40

Browse files
authored
Merge pull request #2 from aboutbits/todo-comments
adjust checkstyle rule to allow for TODO comments if they have a link…
2 parents fb52280 + 021c7b6 commit 5ea7a40

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/resources/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)