Skip to content

Add checks for OpenJDK Style §3.2 - Package declaration #19622

@Anushreebasics

Description

@Anushreebasics

Parent issue: #19604

Description

Add Checkstyle checks for all rules under §3.2 - Package declaration of the OpenJDK Java Style Guidelines v6.

Rules covered

From §3.2 - Package declaration:

  1. The package declaration should not be line wrapped, regardless of whether it exceeds the recommended maximum length of a line. - NoLineWrap Check

Checks to add to openjdk_checks.xml

TreeWalker-level:

<module name="NoLineWrap">
  <property name="tokens" value="PACKAGE_DEF"/>
</module>

Progress Tracker

Check Rule PR
NoLineWrap Package declaration should not be line wrapped

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions