-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Issue #17717: Added checkstyle-openrewrite-recipes #17741
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
Conversation
|
@romani @rdiachenko kindly review. |
|
@romani @rdiachenko |
romani
left a comment
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.
Items
8cfbc97 to
e2b6660
Compare
|
@Anmol202005 also please fix Regarding |
d723278 to
374daef
Compare
romani
left a comment
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.
items:
sounds like we messed up fodlers of clone, see item to improve bellow. |
romani
left a comment
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.
items:
|
group ID should be fixed for autofix project. |
b60688b to
4e4b806
Compare
|
Please send PR to fix groovy regexp to be more explicit |
|
Better idea, please move auto fix version to property of pom.xml, so groovy will not catch it. |
romani
left a comment
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.
Items
988239f to
ef08198
Compare
|
@romani done. |
| @Override | ||
| public void execute() { | ||
| final long startTime = System.currentTimeMillis(); | ||
| long startTime = System.currentTimeMillis(); |
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.
lets see how CI will detect missing "final"
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.
|
@romani i gguess i missed one cmd to run checkstyle first. |
|
I removed it, I am testing, restored. |
romani
left a comment
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.
ok to merge !
rdiachenko
left a comment
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.
lgtm
|
CI failure: Restarted Restarted again. |
975a409 to
510f80d
Compare
romani
left a comment
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.
Very good for first step
| <maven.versions.plugin.version>2.19.0</maven.versions.plugin.version> | ||
| <maven.compiler.plugin.version>3.14.0</maven.compiler.plugin.version> | ||
| <checkstyle.skipCompileInputResources>true</checkstyle.skipCompileInputResources> | ||
| <checkstyle.openrewrite.version>1.0.0-SNAPSHOT</checkstyle.openrewrite.version> |
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.
nearby release would help users to find version quicker.
| ./mvnw -e --no-transfer-progress -Drewrite.recipeChangeLogLevel=INFO \ | ||
| rewrite:run -P checkstyle-autofix | ||
|
|
||
| echo "Checking for uncommitted changes..." |
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.
in rare cases it would actually fail, even when passing here, laking flaky state to prod.
would need to run twice to really make sure, as big changes/recipes sometimes need multiple runs mostly twice just.
17 migration changes from javax to jarkata having the need to reorder/run imports, after initial run/migration.
Just some idea, no big deal as simple rerun will fix it.
Fixes: #17717