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

Popular posts from this blog

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

android - Spacing between the stars of a rating bar? -

c# - Getting "Internal .Net Framework Data Provider error 30" error when column has NULL value -