-
Notifications
You must be signed in to change notification settings - Fork 178
HBASE-27178 Use spotless to format code (including scala code) #119
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
|
Commit 1: Added plug-in along with required files (including support for scala code) Let me know what do you all think of this change. |
...c/main/java/org/apache/hadoop/hbase/spark/example/hbasecontext/JavaHBaseBulkLoadExample.java
Show resolved
Hide resolved
| * The function performing real filtering operations. The format of filterBytes depends on the | ||
| * implementation of the BytesEncoder. | ||
| * | ||
| * @param input: |
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.
this does not look right
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.
its an issue with scalafmt plugin version we are using: scalameta/scalafmt#1387
Will try to bump up to fixed version and update here: scalameta/scalafmt#1987 or apply workaround (as last resort)
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.
update: bumping did not work, so had to apply workaround
duo is this account: @Apache9 |
|
🎊 +1 overall
This message was automatically generated. |
I'd like the separation |
Sure will force push and drop 2nd commit once it looks good to others. We can treat (commit 2 and any new ones) for ref until everyone is fine with changes |
c3d411f to
4b9553c
Compare
|
Reverted 2nd commit and fixed scala param issue. The changes
Dropped 2nd commit as discuused with @Reidddddd. Will raise a WIP-PR with results after applying commit 1 here and running 'mvn spotless:apply'. |
dev-support/.scalafmt.conf
Outdated
| runner.dialect = scala213 | ||
| } | ||
| } | ||
| version = 3.7.12 No newline at end of file |
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.
nit: end with newline
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.
fixed
|
🎊 +1 overall
This message was automatically generated. |
dev-support/.scalafmt.conf
Outdated
| docstrings.style = Asterisk | ||
| # See https://github.com/scalameta/scalafmt/issues/1387 | ||
| docstrings.wrap = no | ||
| maxColumn = 98 |
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.
Need feedback: should we make this 100, similar to setting that we have for java? Or keep it same as spark project?
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.
let's align with hbase project
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.
fixed in commit 2
dev-support/.scalafmt.conf
Outdated
| docstrings.wrap = no | ||
| maxColumn = 98 | ||
| runner.dialect = scala212 | ||
| fileOverride { |
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.
Need feedback: IMHO we can drop this as we do not have this directory/muliple scala implementations similar to how spark has: https://github.com/apache/spark/tree/master/core/src/main/scala-2.13
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
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.
fixed in commit 2
|
🎊 +1 overall
This message was automatically generated. |
|
let's wait some time whether there are other comments |
|
Thanks for review / merge. @Reidddddd / @wForget |
Uh oh!
There was an error while loading. Please reload this page.