Links

Method name casing

org.openrewrite.java.cleanup.MethodNameCasing Method names should comply with a naming convention.

Tags

  • RSPEC-100

Source

  • groupId: org.openrewrite
  • artifactId: rewrite-java
  • version: 7.38.0

Options

Type
Name
Description
Boolean
includeTestSources
Optional. Changes only apply to main by default. includeTestSources will apply the recipe to test source files.
Boolean
renamePublicMethods
Optional. Changes are not applied to public methods unless specified.

Usage

This recipe has no required configuration parameters and comes from a rewrite core library. It can be activated directly without adding any dependencies.
Gradle
Maven POM
Maven Command Line
build.gradle
plugins {
id("org.openrewrite.rewrite") version("5.38.0")
}
rewrite {
activeRecipe("org.openrewrite.java.cleanup.MethodNameCasing")
}
repositories {
mavenCentral()
}
pom.xml
<project>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>4.42.0</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.java.cleanup.MethodNameCasing</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</project>
You will need to have Maven installed on your machine before you can run the following command.
shell
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.activeRecipes=org.openrewrite.java.cleanup.MethodNameCasing

See how this recipe works across multiple open-source repositories

Moderne Link Image
The Moderne public SaaS instance enables you to easily run recipes across thousands of open-source repositories.
Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.