Skip to content

Polish YAML recipe display names and descriptions (K8 of #1330) - #1360

Merged
timtebeek merged 5 commits into
mainfrom
tim/k8-yaml-display-names
Oct 25, 2026
Merged

timtebeek merged 5 commits into
mainfrom
tim/k8-yaml-display-names

Conversation

@timtebeek

@timtebeek timtebeek commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Addresses K8 of #1330.

The YAML recipe display names and descriptions are what users see on docs.openrewrite.org and in the Moderne platform, and a sweep of all files under META-INF/rewrite turned up title case, typos, and descriptions that either repeated the display name, pointed at another recipe, or described something the recipe does not do. This PR changes text only; no recipe names or recipe lists change.

Sentence case. About 40 display names, including "Lombok best practices", "Find virtual thread opportunities", "Migrate OmniFaces namespaces", "Update plugins for Jakarta EE 9/10/11", every "… dependencies to x" title in the Jakarta EE, Faces and Java EE 8 files, "Migrate to Java EE 6/7/8" and "Update Jetty 9 to Jetty 12". Proper nouns (Jakarta EE, OmniFaces, Jetty, EclipseLink, …) keep their casing. While there: "Migrate JAXB-WS Plugin" becomes "Migrate the JAX-WS Maven plugin", since it moves jaxws-maven-plugin. The three Java 25 security recipes now say which calls they remove. A JNDI display name that was written as a full sentence is now an imperative title.

Typos. "Jakata", "API's"/"CDI4.0", "search fro", "J2EE9", "Websphere", "EcmaScript", double spaces, the stray backtick in RemovedSubjectMethods, and the unclosed backtick in UseVar. It also fixes over-indented continuation lines in RemovedZipFinalizeMethods and DeprecatedCountStackFramesMethod: YAML folds those into literal line breaks in the description.

Descriptions.

  • Corrected inaccurate descriptions:
    • ApacheDefaultProvider said it "flags", but it rewrites validation.xml to Hibernate Validator.
    • JakartaEE10/JakartaEE11 and javaee6/7/8 said they were "flagging".
    • OpenJPAPersistenceProvider said "removes", but it replaces the provider.
    • MigrateZipErrorToZipException said Java 9, but the recipe only runs on Java 25.
    • AddJaxwsDependencies mentioned javax.xml.bind instead of javax.xml.ws.
    • NoGuavaJava11/NoGuavaJava21 had copy-pasted text.
    • The NoGuavaSetsNewConcurrentHashSet display name said new ConcurrentHashMap<>().
  • Replaced descriptions that pointed at other recipes (UseVar, AddLombokMapstructBindingMavenDependencyOnly, UpgradeBuildToJava24ForKotlin1x, AddAspectJToolsToAspectJMavenPlugin) with what the recipe itself does.
  • Replaced descriptions that only repeated the display name: the Update* dependency recipes in the Jakarta and Faces files, MigrateToServlet3x, UpdateRestLet2_6, and the MigrateFrom* recipes in jspecify.yml. Each now summarizes its recipe list.

Renames not done. openJPAToEclipseLink, javaee6/7/8 and BounceCastleFromJdk15OntoJdk18On keep their names. This repo has no established pattern for a renamed recipe that keeps its old name as a deprecated alias. The only precedent is UpdateJakartaAnnotations2, an empty placeholder for a recipe that was inlined into its parent. The deprecated tag is also used elsewhere to mean "migrates deprecated APIs" (e.g. on javaee6/7/8 themselves), so tagging aliases with it would be ambiguous. That needs a maintainer decision.

Verified with ./gradlew rCG, which regenerated recipes.csv (committed separately), and ./gradlew compileJava processResources test passed (2297 tests, 0 failures, 63 skipped). A YAML check over every recipe in META-INF/rewrite confirmed that no display name ends with a period, every description ends with one, backticks are balanced, and no description equals its display name.

Lowercase common nouns such as "Dependencies", "Plugins" and "Namespace" while keeping proper nouns like Jakarta EE, OmniFaces and Jetty, spell out "Java EE 6" and "Jetty 9", and put coordinates and package names in backticks.
Among others "Jakata", "API's", "search fro", double spaces, a stray and an unclosed backtick, and continuation lines that YAML folded into literal line breaks.
…elsewhere

Correct descriptions that did not match the recipe list, such as `ApacheDefaultProvider` and the Java EE and Jakarta EE composites that claimed to flag, `AddJaxwsDependencies` mentioning `javax.xml.bind`, `MigrateZipErrorToZipException` gated on Java 25, and the copy-pasted `NoGuavaJava11`/`NoGuavaJava21` text. Replace descriptions that only repeated the display name or referred to another recipe with a summary of the changes made.
…ames-v1

# Conflicts:
#	src/main/resources/META-INF/rewrite/recipes.csv
@timtebeek
timtebeek merged commit e64ee57 into main Oct 25, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/k8-yaml-display-names branch October 25, 2026 12:26
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant