<module name="AtclauseOrder"/>
I verified that Checkstyle correctly understand that text inside {@code} and {@literal} inline taglets shall not be interpreted as HTML. Is there any way to tell Checkstyle to do the same for a custom taglet? In Checkstyle 7.6.1, I currently get the following error messages (translated from French):
[ERROR] (…snip…): Javadoc comment can not be parsed. Details: no viable alternative at input '<T> targetClass = ...;' [AtclauseOrder]
[ERROR] (…snip…): Javadoc comment can not be parsed. HTML closing element 'MyType' not found. [AtclauseOrder]
[ERROR] (…snip…): Javadoc comment can not be parsed: Unknown ANTLR parser error: null [AtclauseOrder]
Martin
Hello Roman
Thanks for your reply. My javadoc is correct. Attached is a test case that reproduce the problem with the following command line:
java -jar checkstyle-7.6.1-all.jar -c config.xml Test.java
The issue is that Checkstyle tries to parse the {@preformat} taglet content as HTML. This is okay if that taglet has been registered with the -tag option on the Javadoc command line [1]. But this is not expected if the tag has been registered by the taglet API [2] instead, which is my case.
Regards,
Martin
[1] http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#tag [2] https://docs.oracle.com/javase/8/docs/jdk/api/javadoc/taglet/com/sun/tools/doclets/Taglet.html