Skip to content

Regression in 13.9.0 after switching from JavadocStyle to SummaryJavadoc #21175

Description

@AlBundy33

Since checkstyle 13.9.0 we have to switch from JavadocStyle to SummaryJavadoc due to #20610

After the update to 13.9.0 we removed

        <module name="JavadocStyle">
            <property name="checkHtml" value="false"/>
        </module>

in TreeWalker and replaced it with

        <module name="SummaryJavadoc"/>

Since this change we have more checkstyle errors because with JavadocStyle it was allowed to have an Empty summary if @PARAM and/or @return was documented.

With JavadocStyle it was also possible to end a sentence with . or ?.
With SummaryJavadoc javadocs like

/**
 * Are you sure?
**/
boolean doSomehing = false;

are invalid.

It would be nice if SummaryJavadoc has an compatibility-option for the old behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions