Skip to content

Commit

Permalink
adjust checkstyle rule to allow for TODO comments if they have a link…
Browse files Browse the repository at this point in the history
… associated
  • Loading branch information
SirCotare committed Sep 9, 2024
1 parent 84702e8 commit 76f65df
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 76f65df

Please sign in to comment.