-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-208: Add checkstyle policy to java project #96
Conversation
Adding a google-style checkstyle |
LGTM. |
@oza: how come it passes without changing anything to the code? |
@julienledem thanks for your review and sorry for the delay. The result of |
Should probably use this JIRA to fix the styles |
Sure, I will send a PR to fix the styles here. |
@oza depending on what the issues are you can also add some excludes. |
@julienledem fixing coding style which we can fix with IDE straightforwardly. Could you check it? About vector directory, we should also check LOC and import ordering, but it cannot do with java configuration. |
I sent PR with wrong pom.xml configuration by my mistake. Resent PR. |
+1 LGTM |
to ease the transition, I'd increase the column limit a bit. |
Can this be rebased? |
@oza can you rebase? Thanks |
@oza rebase? |
Happy new year. Can you rebase? |
@oza if you rebase we'll merge. Also to ease the transition, I'd increase the column limit a bit. |
@julienledem @jacques-n it looks like the contributor isn't coming back. Can someone from the Java side pick this up and make a new patch? I'd like to be able to write patches for the Java codebase with confidence that I'm not messing up the code style, but I'm not very savvy when it comes to editor configuration. |
I have started to look at checkstyles. Google check style is strict. Should we change it:
|
@kiril-me seems OK to me. 120 characters seems quite wide, what is the norm in other ASF Java projects (100 seems like a reasonable max -- in C++ we are limiting to 90)? @julienledem we should prioritize this patch because other patches (e.g. #334) are having style issues |
@julienledem sorry for the delay. I would like to rebase the patch with 100 LOC based on @wesm's comment. |
00e78c0
to
cfdfd7b
Compare
What do you think? |
We'd probably want to wait until #334 is done before doing the style changes. |
Sure. Please ping me if I miss #334 is merged. |
The test failure is caused by being unable to download guava. It looks unrelated to me. Let me try to resubmitting tests again(by doing
|
@oza can you make the style fixes in this patch? |
@wesm Okay, I formatted 80% of code in 809e729 with IDE. There are still javadoc and format warnings, which cannot be reformatted with IDE, but it's much get better formatted. I think it would be better to complete to fix in another jira. About vector code, they seem to be generated with template. This issue, IMHO, should be solved in another jira, too. |
Thanks @oza -- @julienledem could you take a look? Given we don't have many outstanding Java patches, it might be worth going ahead with the 120 -> 100 line length change right now, but we should try not to let this linger because there is other Java work pending. The line wrapping in code comments seems a bit odd to me, this might merit some manual fixing at some point. |
</goals> | ||
</pluginExecutionFilter> | ||
<action> | ||
<ignore /> |
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.
does this mean that we don't run it at all?
can we just exclude the remaining errors?
we can exclude the generated code for now for example.
Still not an optimal size estimation but at least we will have always the required amount. Author: Uwe L. Korn <uwelk@xhochy.com> Closes apache#96 from xhochy/parquet-599 and squashes the following commits: e8044b5 [Uwe L. Korn] PARQUET-599: Better size estimation for levels Change-Id: I93e2b4d2914b50cf24889bcc0c20d669a49284d6
Still not an optimal size estimation but at least we will have always the required amount. Author: Uwe L. Korn <uwelk@xhochy.com> Closes apache#96 from xhochy/parquet-599 and squashes the following commits: e8044b5 [Uwe L. Korn] PARQUET-599: Better size estimation for levels Change-Id: I93e2b4d2914b50cf24889bcc0c20d669a49284d6
Still not an optimal size estimation but at least we will have always the required amount. Author: Uwe L. Korn <uwelk@xhochy.com> Closes apache#96 from xhochy/parquet-599 and squashes the following commits: e8044b5 [Uwe L. Korn] PARQUET-599: Better size estimation for levels Change-Id: I93e2b4d2914b50cf24889bcc0c20d669a49284d6
Still not an optimal size estimation but at least we will have always the required amount. Author: Uwe L. Korn <uwelk@xhochy.com> Closes apache#96 from xhochy/parquet-599 and squashes the following commits: e8044b5 [Uwe L. Korn] PARQUET-599: Better size estimation for levels Change-Id: I93e2b4d2914b50cf24889bcc0c20d669a49284d6
No description provided.