-
Notifications
You must be signed in to change notification settings - Fork 14
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
Style guidelines #28
Comments
I agree, i tried to keep it to a minimum (disable save-actions formatting in eclipse). What IDE do you use because i am considering switching IDE? |
Nope. Study and work have priority at this moment. |
@tubbynl Sorry, not this year. |
your whitespace settings are?
or perhaps we could conform to some styleguide already out there; example: https://google.github.io/styleguide/javaguide.html i'm not really specific on these things just that it's practical to be in sync in order to prevent unneeded merge conflicts. |
I think I have it on 4 spaces. I want to cover this with a checkstyle config, which will run with CI. I already have a local branch for this. I'm not sure if we should take all the guidelines or differ on some. 100 columns seem a bit harsh IMHO. I'm kinda swamped ATM with work and a master program, thus this will not have much prio at the moment. For now I will run a formatter after each release manually (most optimal with the available time/time to fix this ATM). |
the example was more of an indication; i mostly try to use the default Java conventions but with some changes (200 line width and space-only indentation on 4 characters). i've already set auto-formatting off on this project so it doesn't interfere too much :) tnx for merging my pull-requests btw :) |
Not a optimal solution, but this is a link to my Maybe you can enable it for this project (for the time being) |
for the record; java-wise your CodeStyle settings only specify the import-counts to start using .* imports both on 99 the rest is standard IntelliJ (also the import order differ for IntelliJ and Eclipse sadly :/ ) |
@tubbynl It is possible to instruct IntelliJ to use Eclipse's import order, I think. |
The problem was the other way around (me using eclipse ordering imports differently) |
Does anybody have experience with this library or something similar. I've been using elm-format extensively and I like the simplicity of 'I do not bother with the style, it just looks nice'. |
nope, but if you currently use elm-format i think that makes the most sense, i mostly think collaboration/less diffs is more important than some-person-s-code-style-preference :) |
There should be style guidelines for the Java code to minimize the changes.
These should at least address:
*
importsShould the repo contain a settings file/JAR, or just some guidelines?
The text was updated successfully, but these errors were encountered: