-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add source code formatting? #33
Comments
I'm in full support for having a code formatter. Android Studio has a code formatter built in already (right click I'm thinking in a future PR, we can just export the settings, add instructions on how to use it to the contributing section, and require that people use it before any PR. Similarly, I'm thinking of changing all the snake_case variables to camelCase, but these changes will only be done after the current PRs are merged. |
Thought it was odd to use snake_case in a Java project but went with it because I saw it in the rest of the code :p |
I think this is a good idea overall |
I think the Android Studio one is perfectly fine. It will most likely work well in this project. Since you asked, I'll try to give a comparison. I think the main differences are:
Overall, I don't think these are big or even compelling reasons. 👍🏻 |
Yeah it's probably fine
This would be cool but we don't really have any other CI stuff at the moment so likely would not be worth it right now I feel |
If someone is up to creating a PR for this then it'd be a welcome change |
This issue is to open a discussion on whether the project should have a source code formatter taken into use.
Why use a formatter?
What benefits could it bring?
What does it do exactly?
A formatter typically has the following functions:
Thus adding a formatter would need the following:
My suggestion
I have previously worked with a java formatter called google-java-format which has good plugins for IDEA, Android Studio (I have no personal experience using it with Android Studio) and I think one developer used it with Eclipse. The formatting style in this formatter is not configurable at all, you can literally change nothing, I think. This means it's extremely opinionated but also very easy to set up.
The text was updated successfully, but these errors were encountered: