parent issue #19604
description
Add Checkstyle checks for all rules under §3.8.1 - Wrapping Class Declarations of the OpenJDK Java Style Guidelines v6.
Rules covered
From §3.8.1 - Wrapping Class Declarations:
-
A class header should not be wrapped unless it approaches the maximum column limit.
Planned coverage: new Check to validate class declaration should stay on one line by default.
-
If it is wrapped, wrapping should happen before extends and/or implements.
Planned coverage: new Check to validate extends and implements start on a new line when class declaration is wrapped.
-
Declarations of type parameters may, if necessary, be wrapped the same way as method arguments.
Coverage decision: not enforceable as a strict rule because “if necessary” is discretionary.
Checks to add to openjdk_checks.xml:
- New check (to be implemented in this issue) for class declaration wrapping rules in §3.8.1.
Progress tracker
| rules |
status |
| Class header single-line by default |
|
| Wrap before extends/implements when wrapped |
|
| Type parameter wrapping "if necessary" |
|
parent issue #19604
description
Add Checkstyle checks for all rules under §3.8.1 - Wrapping Class Declarations of the OpenJDK Java Style Guidelines v6.
Rules covered
From §3.8.1 - Wrapping Class Declarations:
A class header should not be wrapped unless it approaches the maximum column limit.
Planned coverage: new Check to validate class declaration should stay on one line by default.
If it is wrapped, wrapping should happen before extends and/or implements.
Planned coverage: new Check to validate extends and implements start on a new line when class declaration is wrapped.
Declarations of type parameters may, if necessary, be wrapped the same way as method arguments.
Coverage decision: not enforceable as a strict rule because “if necessary” is discretionary.
Checks to add to
openjdk_checks.xml:Progress tracker