-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Actualize Eclipse Che Java coding standards #5772
Comments
AFAIK we use 4 spaces indent in Java code while google is using 2 spaces indent. Using option 1. will change impact almost all lines of Java files |
yes. |
@skabashnyuk could you describe more the
because when I read "we can" it seems to be still an option, not the way to go. |
No our plan to use " Google Java Style" as is without modification. |
I didn't see public discussion around the "our plan" |
For sure it will impact whole code database. I suppose even without changing indentation from 4 to 2 spaces we will get huge amount of changed lines |
Issues and PRs are public and discussion is allowed here |
This kind of change should be discussed publicly on mailing lists. |
Especially when the word "our" is used while I saw no previous discussion before. |
Ok. Guys. The main idea is to not to have any "holly wars" around format and reuse something popular as is without a single modification. Because when we can use some automation like this https://github.com/coveo/fmt-maven-plugin @benoitf what do you propose? |
Nothing is committed yet, so you can drive the discussion now. I don't see a problem here. |
@skabashnyuk my point was more on the process. Informing the community first, grab feedback about expectations of users, propose options, etc. Instead of a list of tasks in a github issue. |
10 days is not enough to inform? |
@skabashnyuk IMHO Informing the community is not creating an issue on github. |
on the question: I mainly see that the proposed solution is only targetting java files. But Eclipse Che "coding standards" is also for other type of files like : XML, TypeScript. I saw nothing on the description about that part while users can contribute to other files than "Java". I heared in a previous meeting that EditorConfig could be used but I don't see it in the list. (because here it targets only Eclipse IDE, Che and Intellij |
yes. You are right. I'll change the scope of this issue to Java only. |
but why isn't it a broader scope that only Java ? |
I doubt that this is potentially resolvable in close future. Don't want to take to much at once. |
@skabashnyuk I think including EditorConfig as proposed by others should clearly help supporting not only Java as well as it can address some "classic PR comments" in the Pull Request like missing newline at the end of file, trim of spaces, indent for not only java files and is supported by a wide list of Editors. |
I'm ok with your proposal. Can you do that as a separate issue?
Because one of the core parts is java only [3] https://github.com/google/google-java-format https://github.com/coveo/fmt-maven-plugin without them I think it's almost impossible to guarantee same results on different editors. |
it's a separate Pull Requests but I don't think it should be a fully separate issue as it's still under the same goal "Adopt tools to make contributions/reviews easier around Coding Style" (so more under the same "epic") BTW EditorConfig is more global than Java. I mean, these are global rules (like indent, space triming) but there is nothing on order of imports (specific to java, etc) |
@benoitf we started to discuss it at least 4 months ago, you can check che-dev mail list, thread name is: "Che developers formatting rules for Java" (you took part and it was ended with practically the same resolution), then we discussed it in other places (like mattermost) and have several votes in this issue too. So, it definitely can be considered as "our decision". |
@gazarenkov well community should be still informed about steps that will follow a 4 months old discussion. |
thanks @skabashnyuk for the mail on che-dev |
Thanks @skabashnyuk for the mail, I've created #5900 for dog fooding :) |
Make sure https://github.com/eclipse/che/wiki/Coding-Guidelines is removed |
ok |
The goal of this issues is to revise our existed guidelines
https://github.com/eclipse/che/wiki/Coding-Guidelines and adapt
it to realities and the challenges that we have today.
As for me I can see such problems
More general: people want that this thing has to work some how, but not to pay a lot of attention to it.
I'm proposing following direction.
The text was updated successfully, but these errors were encountered: