Skip to content

SimplifyForLoopBoundaryComparison recipe#821

Merged
greg-at-moderne merged 9 commits intomainfrom
greg-string-literal-equality
Feb 24, 2026
Merged

SimplifyForLoopBoundaryComparison recipe#821
greg-at-moderne merged 9 commits intomainfrom
greg-string-literal-equality

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Feb 23, 2026

What's changed?

New recipe: SimplifyForLoopBoundaryComparison.

What's your motivation?

@greg-at-moderne greg-at-moderne self-assigned this Feb 23, 2026
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Feb 23, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review February 24, 2026 08:48
@greg-at-moderne greg-at-moderne merged commit ab55f8e into main Feb 24, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-string-literal-equality branch February 24, 2026 08:48
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Feb 24, 2026
mergify bot added a commit to robfrank/linklift that referenced this pull request Feb 26, 2026
… 2.27.0 to 2.28.0 [skip ci]

Bumps [org.openrewrite.recipe:rewrite-static-analysis](https://github.com/openrewrite/rewrite-static-analysis) from 2.27.0 to 2.28.0.
Release notes

*Sourced from [org.openrewrite.recipe:rewrite-static-analysis's releases](https://github.com/openrewrite/rewrite-static-analysis/releases).*

> 2.28.0
> ------
>
> What's Changed
> --------------
>
> * CLAUDE instructions: Do not add to common-static-analysis.yml by [`@​greg-at-moderne`](https://github.com/greg-at-moderne) in [openrewrite/rewrite-static-analysis#818](https://redirect.github.com/openrewrite/rewrite-static-analysis/pull/818)
> * Regenerate recipes.csv to fix CI by [`@​timtebeek`](https://github.com/timtebeek) in [openrewrite/rewrite-static-analysis#820](https://redirect.github.com/openrewrite/rewrite-static-analysis/pull/820)
> * `RemoveTrailingWhitespace` recipe by [`@​greg-at-moderne`](https://github.com/greg-at-moderne) in [openrewrite/rewrite-static-analysis#819](https://redirect.github.com/openrewrite/rewrite-static-analysis/pull/819)
> * `SimplifyForLoopBoundaryComparison` recipe by [`@​greg-at-moderne`](https://github.com/greg-at-moderne) in [openrewrite/rewrite-static-analysis#821](https://redirect.github.com/openrewrite/rewrite-static-analysis/pull/821)
>
> **Full Changelog**: <openrewrite/rewrite-static-analysis@v2.27.0...v2.28.0>


Commits

* [`f332ad0`](openrewrite/rewrite-static-analysis@f332ad0) Add missing import
* [`8ee9ffc`](openrewrite/rewrite-static-analysis@8ee9ffc) OpenRewrite recipe best practices
* [`ab55f8e`](openrewrite/rewrite-static-analysis@ab55f8e) `SimplifyForLoopBoundaryComparison` recipe ([#821](https://redirect.github.com/openrewrite/rewrite-static-analysis/issues/821))
* [`276ee4e`](openrewrite/rewrite-static-analysis@276ee4e) `RemoveTrailingWhitespace` recipe ([#819](https://redirect.github.com/openrewrite/rewrite-static-analysis/issues/819))
* [`38704bd`](openrewrite/rewrite-static-analysis@38704bd) Update Gradle wrapper to 9.3.1
* [`70fe161`](openrewrite/rewrite-static-analysis@70fe161) Regenerate recipes.csv to include InlineDeprecatedMethods ([#820](https://redirect.github.com/openrewrite/rewrite-static-analysis/issues/820))
* [`98c28e4`](openrewrite/rewrite-static-analysis@98c28e4) Do not add to common-static-analysis.yml ([#818](https://redirect.github.com/openrewrite/rewrite-static-analysis/issues/818))
* [`08bddd8`](openrewrite/rewrite-static-analysis@08bddd8) OpenRewrite recipe best practices
* [`69d43a5`](openrewrite/rewrite-static-analysis@69d43a5) Remove newly redundant CustomImportOrder in favor of OrderImports.
* See full diff in [compare view](openrewrite/rewrite-static-analysis@v2.27.0...v2.28.0)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=org.openrewrite.recipe:rewrite-static-analysis&package-manager=maven&previous-version=2.27.0&new-version=2.28.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
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.

Recipe for using < instead of <= in for loops conditions

1 participant