-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
(re)activate rewrite
capability
#4708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
rewrite
checks failOnDryRunResults
I don't understand your sentence structure. Could you please elaborate?
We have it in place as a migration add from Java 8 to 17 for JUnit 6.0. I'm open to using it for static analysis and detecting issues if that's easy to set up. |
gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts
Outdated
Show resolved
Hide resolved
gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts
Show resolved
Hide resolved
Looks like this is indeed blocked until Open Rewrite updates to classgraph-4.8.180 or later. |
yes, but this seems to be an random impl. detail thats going to change again, like expected. Could potentially fix by downgrade or just wait some time, as issue seems simple and closed soon. This is more an strategic item wether or not to leverage to tool or kind of get rid or it, as the current benefit seems questionable. |
I double-checked and it's already using that version.
I'd like to give it a shot to see whether it's helpful. However, for that I'd have to try it out. Blocked by openrewrite/rewrite#5677 |
a3cf75a
to
313edc7
Compare
gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts
Outdated
Show resolved
Hide resolved
item: (on main as well...)
|
e842958
to
035df98
Compare
yes sorry. As we dont use the auto apply on spot assuming its not done for rewrite ether. Nice to see that you (at least) consider activating the failOnDryRunResults. This shows real discipline and consequence. |
is it possible to have hybrid version of auto fix on dedicated local this is silent approach making both parties happy. |
0637431
to
aba289d
Compare
gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts
Outdated
Show resolved
Hide resolved
gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts
Outdated
Show resolved
Hide resolved
gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts
Show resolved
Hide resolved
gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts
Outdated
Show resolved
Hide resolved
gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts
Show resolved
Hide resolved
tasks.named("rewriteDryRun") { | ||
dependsOn("compileJava") | ||
if (valueOf(getenv("rewriteRun")) && getenv("CI") == null) { | ||
dependsOn("rewriteRun") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a dry run depends on a rewriteRun
that might end up performing the slow step of building up a model twice. I think it'd be better to switch between a dry run and and regular run (making code changes) based on whether we're in CI.
gradle/plugins/common/src/main/kotlin/junitbuild.java-library-conventions.gradle.kts
Outdated
Show resolved
Hide resolved
gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts
Outdated
Show resolved
Hide resolved
rewrite
checks failOnDryRunResults
rewrite
capability
add thread to impose open feedback. |
activate unused
rewrite
checksfailOnDryRunResults
assuming its not automated, as automation of automation of cosmetics was recently opinionated, rationally not comprehensible, as result is the same, rejected, assuming its not done ether for the real deal, as build success but rewrite unable to be executed on my system:
PS: Wondering how you have it in place, even tho unused, asquarkus and maven (even escaled this) rejected it, because of recently changed licence foo.
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations