Skip to content

Commit

Permalink
Merge pull request #6 from aboutbits/ab-234-checkstyle-allow-todo
Browse files Browse the repository at this point in the history
adjust checkstyle rule to allow for TODO comments if they have a link…
  • Loading branch information
SirCotare authored Sep 10, 2024
2 parents 19c1c61 + 76f65df commit 69d3b5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@
<!-- See https://checkstyle.org/config_misc.html -->
<module name="ArrayTypeStyle"/>
<!--<module name="FinalParameters"/>-->
<module name="TodoComment"/>
<module name="TodoComment">
<!-- allow any form of TODO comments if they have a link associated -->
<property name="format" value="(?i)^\s*TO[-_]?DO:?(?!.*https?:\/\/)"/>
</module>
<module name="UpperEll"/>

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

0 comments on commit 69d3b5a

Please sign in to comment.