-
Notifications
You must be signed in to change notification settings - Fork 109
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
Cleanup poms (using same format for all), remove redundant dependencies, plugins (still todo) #1166
Cleanup poms (using same format for all), remove redundant dependencies, plugins (still todo) #1166
Conversation
b9a9922
to
e67c215
Compare
… poms, fix some wrong dependencies not existing Signed-off-by: Olivier Lamy <[email protected]>
e67c215
to
850244a
Compare
Signed-off-by: Olivier Lamy <[email protected]>
FYI, we have also used 4 spaces indent previously in different files (just looked at some I'm not against using a 2 space indent. Do others have input? |
@scottmarlow the idea is to use similar format for all otherwise it is a bit confusing. |
Any particular reason why 2 spaces instead of 4 spaces? |
well I guess I put 2 spaces because I'm used to it for all projects I'm working on and because I use a laptop small screen only and I usually prefer condensed for xml. |
Please could we merge this? |
Hi,
Please vote on whether the platform TCK source indentation should be 2
spaces or 4 spaces.
Please vote yes if you want to use 2 space indentation. Please vote no for using 4 space indentation. Please abstain if you do not care how many spaces are in source file indentations.
Please vote by May 31, 2023
Thanks,
Scott
|
I vote NO.Years ago I used 2 spaces. I learned to use the checkstyle maven plugin to enforce "no tab char" policy in java and xml and some other file types. Since then most projects I was working on use 4 spaces so I "aligned" with that. I would strongly encourage to not being "original" and be just another standard project without "surprises". The only surprise should be simplicity. 2 spaces:
4 space:
The difference is not so extremely important, but I would say that I see more often fights against 2-space-based conventions while 4-space-based are usually just accepted. That can give some clue too, what is the better option. |
No from me |
I would stick to 4 spaces. Seems to be the standard used most places |
I have a personal preference for no (4 spaces) but a much stronger preference for consistency. I can live with either choice. |
Since there's no Eclipse Style Guide for XML files, I think we should lean on the Maven Style Guide (as this PR is only about maven poms) https://maven.apache.org/developers/conventions/code.html#XML_Code_Style Which advocates for 2 spaces. |
-1 (no) on 2 spaces proposed by this PR. We should strive for consistency across the rest of the projects under the jakartaee organization... which uses 4 spaces. IDE's can be adjusted to handle profiles in case a particular user/organization/company uses 2 spaces. |
Neither Jakarta EE nor the Eclipse Foundation have a Code Style Guide that covers XML style (the scope of this PR).
|
I vote for 4 spaces. I've never worked on a project with 2 space indentation and most IDEs are configured by default to use 4 space indentation, so I perceive that 4 spaces are a de facto standard. |
I think there might be some confusion on the scope. |
Signed-off-by: Olivier Lamy <[email protected]>
spotless ONLY FOR POM has been added here https://github.com/jakartaee/platform-tck/pull/1166/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R814 |
the only argument I've heard for 2 spaces (or a tab) I can buy is A11Y - disabled person with a screen reader on may be hearing a lot of noise with growing number of spaces. So while I'm for for no (use 4 spaces), the question is - is this project concerned about A11Y? |
Even if we cared about accessibility, it's a different issue: https://adamtuttle.codes/blog/2021/tabs-vs-spaces-its-an-accessibility-issue/. It's about using Tabs so that people with bad eyesight can increase indent to more spaces in their editor. If we translate it to 2 spaces or 4 spaces, it's clear that 4 spaces are better for such people. I really doubt that a screen reader reads spaces or tabs, they are just blank characters... |
Very hard NO from me. For the simple reason that we standardised on a code style years ago. See https://github.com/eclipse-ee4j/ee4j/blob/master/codestyle/ee4j-eclipse-formatting.xml#L23 |
no need anymore to vote on 2 vs 4. please read the comment here #1166 (comment) |
Thanks @olamy for being willing to use 4 space tabs. I think we should wait a bit longer to hear from others as it could go either way still. I haven't counted the votes yet and I think we should wait until May 31 to summarize the counts since that is what I previously suggested. Thanks, |
no worries it's called democracy or community whatever you prefer :). As said in the mail thread the most important is to have a consensus/commong agreement and the tooling enforcing it and to move forward |
@scottmarlow it looks as of May 31 the 4 spaces are the winner. |
Thanks @olamy! |
The goal is to start cleanup of poms: