openrewrite / openrewrite/rewrite

Remove the ordering limitation (LST before FindAndReplace)

Open
#3,320 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
3.7k
Forks
571
Avg merge
13h 12m
Merged PRs (30d)
261

Description

What problem are you trying to solve?

Currently there is a constraint on recipe order https://docs.openrewrite.org/recipes/text/findandreplace

Describe the solution you'd like

As discussed on slack https://rewriteoss.slack.com/archives/C01A843MWG5/p1686745375884939

If possible, it would make sense to remove that strong limatation.

Have you considered any alternatives or workarounds?

Have an option to allow auto-ordering

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the recipe-ordering documentation for FindAndReplace and the linked Slack discussion. No source files or tests are named, so trace where the LST-before-FindAndReplace constraint is enforced. Done means the strong ordering limitation is removed or an agreed auto-ordering option is implemented and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.