-
Notifications
You must be signed in to change notification settings - Fork 486
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
ORC-1665: Migrate to importOrder
of spotless-maven-plugin
#1860
Conversation
importOrder
function in spotless-maven-plugin
importOrder
function in spotless-maven-plugin
@@ -330,4 +330,3 @@ private byte[] getMaterial() { | |||
} | |||
|
|||
} | |||
|
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.
Because these files have two newlines at the end, one newline is automatically deleted after spotless apply.
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.
Because these files have two newlines at the end, one newline is automatically deleted after spotless apply.
Please make a new PR for the end line change separately before all of these migration.
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.
Also, we need a way to prevent any future regression in terms of the end line.
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.
Please make a new PR for the end line change separately before all of these migration.
OK
we need a way to prevent any future regression in terms of the end line
Now spotless-maven-plugin
will check this behavior, so the beginning of the CI failed at the beginning.
java/bench/core/src/java/org/apache/orc/bench/core/RecordCounters.java
Outdated
Show resolved
Hide resolved
importOrder
function in spotless-maven-plugin
importOrder
of spotless-maven-plugin
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.
+1, LGTM.
### What changes were proposed in this pull request? This PR aims to remove extra newlines at the end of Java files. ### Why are the changes needed? #1860 (comment) ### How was this patch tested? GA ### Was this patch authored or co-authored using generative AI tooling? No Closes #1861 from cxzl25/ORC-1666. Authored-by: sychen <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
Could you resolve the conflicts, @cxzl25 ? |
What changes were proposed in this pull request?
This PR aims to enable the
importOrder
function inspotless-maven-plugin
.Why are the changes needed?
Although there is now checkstyle to limit the order of imports, it cannot be automatically adjusted.
spotless-maven-plugin
can check and automatically adjust.#1859 (review)
How was this patch tested?
local test
Was this patch authored or co-authored using generative AI tooling?
No