Pattern: Unresolved warning comment
Issue: -
Developers often add comments to code which is not complete or needs review. Most likely you want to fix or review the code, and then remove the comment, before you consider the code to be production ready.
<module name="TodoComment">
<property name="format" value="(TODO)|(FIXME)"/>
<message key="todo.match" value="Resolve unexpected comment."/>
</module>
Example of incorrect code:
// FIXME: this is not a good idea
// TODO: need code review
doSomethingExperimental();
Example of correct code:
// NOT READY FOR PRIME TIME
// but too bad, it is not a predefined warning term
doSomethingExperimental();