Skip to content

Commit

Permalink
Adjusts MethdNameCasing name and description (#292)
Browse files Browse the repository at this point in the history
* Adjusts MethdNameCasing name and description

To hopefully be clearer as to what it does. Based on feedback from
the following issue: openrewrite/rewrite#4180

* Update src/main/java/org/openrewrite/staticanalysis/MethodNameCasing.java

Co-authored-by: Tim te Beek <tim@moderne.io>

---------

Co-authored-by: timo-abele <mike-solomon@users.noreply.github.com>
Co-authored-by: Tim te Beek <tim@moderne.io>
  • Loading branch information
3 people committed May 10, 2024
1 parent 989faff commit e80248c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ public class MethodNameCasing extends ScanningRecipe<List<MethodNameCasing.Metho

@Override
public String getDisplayName() {
return "Method name casing";
return "Standardize method name casing";
}

@Override
public String getDescription() {
return "Method names should comply with a naming convention.";
return "Fixes method names that do not follow standard naming conventions. " +
"For example, `String getFoo_bar()` would be adjusted to `String getFooBar()` " +
"and `int DoSomething()` would be adjusted to `int doSomething()`.";
}

@Override
Expand Down

0 comments on commit e80248c

Please sign in to comment.