checkstyle icon indicating copy to clipboard operation
checkstyle copied to clipboard

JavadocLeadingAsteriskAlign should be able to ignore invalid html

Open MateuszStefek opened this issue 6 months ago • 2 comments

The following Javadoc has all asterisks aligned correctly, but the JavadocLeadingAsteriskAlign fails.

	/**
	 * Foo bar bla bla <code>code<code> foo bar
	 */
	public static void x() {
07:58:07 [main] [ERROR] MyClass.java:[229] (javadoc) JavadocLeadingAsteriskAlign: Javadoc comment at column 20 has parse error. Missed HTML close tag 'code'. Sometimes it means that close tag missed for one of previous tags.

<property name="violateExecutionOnNonTightHtml" value="false" /> doesn't help.

There's a mistake in the html, but I think HTML validation should be a separate check.

MateuszStefek avatar Aug 30 '24 03:08 MateuszStefek