java - How to teach checkstyle to ignore my custom javadoc tags? -
i have custom javadoc tag (@todo
) attached methods , classes. checkstyle says:
[error] foo.java[0:null] got exception - java.lang.illegalargumentexception: name [todo] not valid javadoc tag name
is possible teach checkstyle ignore these tags?
i tried configure specified here:
<module name="javadoctype"> <property name="allowunknowntags" value="true"/> </module>
but got message:
... cannot initialize module treewalker - property 'allowunknowntags' in module javadoctype not exist, please check documentation
moreover, need use these tags not types, packages, methods, , variables.
ps. it's maven-checkstyle-plugin
2.6
you can't use property because maven checkstyle plugin uses checkstyle 5.0 whereas allowunknowntags
property introduced in checkstyle 5.1. (see checkstyle release notes)
Comments
Post a Comment