Skip to content

Conversation

Pankraz76
Copy link

I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

relates to:

> Task :rewriteRun
Changes have been made to junit-platform-engine/src/main/java/org/junit/platform/engine/UniqueId.java by:
    tech.picnic.errorprone.refasterrules.CollectionRulesRecipes
        tech.picnic.errorprone.refasterrules.CollectionRulesRecipes$OptionalFirstCollectionElementRecipe
Changes have been made to junit-platform-engine/src/main/java/org/junit/platform/engine/support/hierarchical/DefaultParallelExecutionConfigurationStrategy.java by:
    tech.picnic.errorprone.refasterrules.BigDecimalRulesRecipes
        tech.picnic.errorprone.refasterrules.BigDecimalRulesRecipes$BigDecimalSignumIsPositiveRecipe
Changes have been made to junit-platform-launcher/src/main/java/org/junit/platform/launcher/EngineFilter.java by:
    tech.picnic.errorprone.refasterrules.CollectionRulesRecipes
        tech.picnic.errorprone.refasterrules.CollectionRulesRecipes$CollectionContainsRecipe
Changes have been made to junit-platform-launcher/src/main/java/org/junit/platform/launcher/listeners/OutputDir.java by:
    tech.picnic.errorprone.refasterrules.StreamRulesRecipes
        tech.picnic.errorprone.refasterrules.StreamRulesRecipes$StreamFindAnyIsPresentRecipe
Changes have been made to jupiter-tests/src/test/java/org/junit/jupiter/engine/discovery/predicates/IsTestFactoryMethodTests.java by:
    tech.picnic.errorprone.refasterrules.StreamRulesRecipes
        tech.picnic.errorprone.refasterrules.StreamRulesRecipes$EmptyStreamRecipe
Changes have been made to platform-tests/src/test/java/org/junit/platform/commons/support/conversion/ConversionSupportTests.java by:
    tech.picnic.errorprone.refasterrules.TimeRulesRecipes
        tech.picnic.errorprone.refasterrules.TimeRulesRecipes$EpochInstantRecipe
Changes have been made to platform-tests/src/test/java/org/junit/platform/engine/support/descriptor/AbstractTestSourceTests.java by:
    tech.picnic.errorprone.refasterrules.ClassRulesRecipes
        tech.picnic.errorprone.refasterrules.ClassRulesRecipes$ClassIsInstanceRecipe
Changes have been made to platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/OutputAttachingExtension.java by:
    tech.picnic.errorprone.refasterrules.ComparatorRulesRecipes
        tech.picnic.errorprone.refasterrules.ComparatorRulesRecipes$ReverseOrderRecipe
Changes have been made to platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java by:
    tech.picnic.errorprone.refasterrules.StreamRulesRecipes
        tech.picnic.errorprone.refasterrules.StreamRulesRecipes$StreamFilterSortedRecipe
Changes have been made to platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/LocalMavenRepo.java by:
    tech.picnic.errorprone.refasterrules.ComparatorRulesRecipes
        tech.picnic.errorprone.refasterrules.ComparatorRulesRecipes$ReverseOrderRecipe
Please review and commit the results.
Estimate time saved: 50m

@Pankraz76 Pankraz76 changed the title [openrewrite] add SanityCheck featuring CommonStaticAnalysis [openrewrite] add SanityCheck featuring tech.picnic.errorprone.refasterrules Sep 27, 2025
Copy link
Author

@Pankraz76 Pankraz76 left a comment

Choose a reason for hiding this comment

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

kindly request feedback. Thanks.


rewrite {
activeRecipe("org.junit.jupiter.openrewrite.SanityCheck")
exclusions.addAll("**.ci-temp**")
Copy link
Author

Choose a reason for hiding this comment

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

Suggested change
exclusions.addAll("**.ci-temp**")

uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: rewriteDryRun
Copy link
Author

Choose a reason for hiding this comment

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

this is just an reminder of course you need to choose where to put this best.

- tech.picnic.errorprone.refasterrules.PrimitiveRulesRecipes
- tech.picnic.errorprone.refasterrules.StreamRulesRecipes
- tech.picnic.errorprone.refasterrules.TimeRulesRecipes
# - org.openrewrite.staticanalysis.EqualsAvoidsNull
Copy link
Author

Choose a reason for hiding this comment

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

this does change alot despite the initial effort. Every tool has its benefits making it win to the community.

@marcphilipp
Copy link
Member

We have already decided against adopting OpenRewrite for our day-to-day build. I'd be open to looking at Error Prone's refaster with Picnic's rules, though, as discussed on the issue.

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