Skip to content

Add checks for OpenJDK Style §4.3 - Method Names #19755

@Anushreebasics

Description

@Anushreebasics

Parent issue: #19604

Description

Add Checkstyle checks for all rules under §4.3 - Method Names of the OpenJDK Java Style Guidelines v6.

Image

Method Names
Method names should typically be verbs or other descriptions of actions.
Use mixed case with the first letter in lower case.

Rules covered

From §4.3 - Method Names:

  1. Method name must start with a lowercase letter.
  2. Method name must not contain _.

Checks to add to openjdk_checks.xml

TreeWalker-level:

  <module name="MethodName">
  <property name="format" value="^[a-z][^_]*$"/>
</module>

Progress tracker

Check Rule Status
MethodName starts with lowercase and has no _

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