Skip to content

[rewrite] add CodeCleanup#2812

Closed
Pankraz76 wants to merge 25 commits intodiffplug:mainfrom
Pankraz76:CodeCleanup
Closed

[rewrite] add CodeCleanup#2812
Pankraz76 wants to merge 25 commits intodiffplug:mainfrom
Pankraz76:CodeCleanup

Conversation

@Pankraz76
Copy link

[rewrite] add CodeCleanup

There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m

- name: Rewrite ♻️
run: ./gradlew rewriteDryRun
- name: assemble testClasses
run: ./gradlew clean rewriteDryRun
Copy link
Author

@Pankraz76 Pankraz76 Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try with clean to avoid regression like seen in: @Goooler

Vincent Potucek added 2 commits January 10, 2026 20:31
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
- name: build (everything-but-maven)
if: matrix.kind == 'gradle'
run: ./gradlew build -x spotlessCheck -x rewriteDryRun -PSPOTLESS_EXCLUDE_MAVEN=true
run: ./gradlew clean build -PSPOTLESS_EXCLUDE_MAVEN=true
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test locally and partially on CI working assuming flaky build:

Image

uses: gradle/actions/setup-gradle@v5
- name: build (maven-only)
if: matrix.kind == 'maven'
run: ./gradlew :plugin-maven:build -x spotlessCheck -x rewriteDryRun
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • rewriteDryRun
    • we only call this on demand.
  • spotlessCheck
    • we do not reach here if not complain, could double check here or is this flaky as well, therefore excluded ?

Vincent Potucek added 9 commits January 10, 2026 21:28
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
- name: Rewrite ♻️
run: ./gradlew rewriteDryRun
- name: assemble testClasses
run: ./gradlew assemble testClasses
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is came into live as one job:

Image

as its one dedicated goal why not run it also in dedicated job?

Image

Vincent Potucek added 8 commits January 10, 2026 21:54
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
@Pankraz76
Copy link
Author

IO:

Task :testlib:spotbugsMain

Task :lib-extra:test
com.diffplug.spotless.extra.cpp.EclipseCdtFormatterStepTest > formatWithVersion(String) [2] "11.6" FAILED (5s)

com.diffplug.spotless.ThrowingEx$WrappedAsRuntimeException: java.io.IOException: Failed to load eclipse cdt formatter: java.lang.IllegalStateException: P2 operation already in progress, close other clients or delete stale lockfile at /home/runner/.m2/repository/dev/equo/p2-data/metadata/.lock
at app//com.diffplug.spotless.extra.cpp.EclipseCdtFormatterStepTest.formatWithVersion(EclipseCdtFormatterStepTest.java:34)
Caused by: java.io.IOException: Failed to load eclipse cdt formatter: java.lang.IllegalStateException: P2 operation already in progress, close other clients or delete stale lockfile at /home/runner/.m2/repository/dev/equo/p2-data/metadata/.lock
at com.diffplug.spotless.extra.cpp.EclipseCdtFormatterStepTest.formatWithVersion(EclipseCdtFormatterStepTest.java:34)
Caused by: java.lang.IllegalStateException: P2 operation already in progress, close other clients or delete stale lockfile at /home/runner/.m2/repository/dev/equo/p2-data/metadata/.lock
at com.diffplug.spotless.extra.cpp.EclipseCdtFormatterStepTest.formatWithVersion(EclipseCdtFormatterStepTest.java:34)

Vincent Potucek added 6 commits January 10, 2026 22:34
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
Signed-off-by: Vincent Potucek <vpotucek@me.com>

- https://docs.openrewrite.org/recipes/staticanalysis/codecleanup

```
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/eslint-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/prettier-package.json
There were problems parsing lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-package.json
All sources parsed, running active recipes: com.diffplug.spotless.openrewrite.SanityCheck
Changes have been made to testlib/src/main/java/com/diffplug/spotless/TestProvisioner.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/main/java/com/diffplug/spotless/ReflectionUtil.java by:
    org.openrewrite.staticanalysis.HideUtilityClassConstructor
Changes have been made to testlib/src/test/java/com/diffplug/spotless/PaddedCellTest.java by:
    org.openrewrite.staticanalysis.ForLoopControlVariablePostfixOperators
Please review and commit the results.
Estimate time saved: 15m
```
@Goooler
Copy link
Member

Goooler commented Jan 11, 2026

Don't spam. I'm not sure why you introduced OpenRewrite.

You really shouldn't use the 'clean' everywhere.

@Goooler Goooler closed this Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants