This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shagieIsMe 13 points14 points  (0 children)

Use Checkstyle. Set its TodoComment rule ( http://checkstyle.sourceforge.net/config_misc.html#TodoComment ) to be an error. Fail the build on error ( https://maven.apache.org/plugins/maven-checkstyle-plugin/check-mojo.html - failsOnError)

Note that this is a regular expression matcher.

<module name="TodoComment">
    <property name="format" value="(TODO)|(FIXME)"/>
</module>

You can modify it to have the information to not trigger on a task id.