Skip to content

Google style: method names should not allow to have '_' unless they are annotated by Test #15429

@romani

Description

@romani

detected at #15411 (comment)

this 0eadd97 is where _ is explicitly disappear and becomes covered by \w.

but it make all methods to be allow to have _

in style guide:

5.2.3 Method names
Method names are written in lowerCamelCase.
Method names are typically verbs or verb phrases. For example, sendMessage or stop.
Underscores may appear in JUnit test method names to separate logical components of the name, with each component written in lowerCamelCase, for example transferMoney_deductsFromSource. There is no One Correct Way to name test methods.

attention to Underscores may appear in JUnit test method names to separate logical components of the name,

Required: use https://checkstyle.org/filters/suppressionxpathsinglefilter.html
https://checkstyle.org/filters/suppressionsinglefilter.html#SuppressionSingleFilter to suppress

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions