-
Notifications
You must be signed in to change notification settings - Fork 55
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 a code style formater for contributing. #88
Comments
This reminds me to add contribution section in the website too! Let me add it later after this issue is resolved :) |
@glung I don't know if we can use intelliJ native code formatter from gradle task or not, but I found this nice tool called spotless (https://github.com/diffplug/spotless/tree/master/plugin-gradle) that can be used for formatting code based on defined style from gradle task! Please check it out and if you think it's good I'll try to create a PR! |
Hum, it seems quite a bit of configurations and adds another dependency. In the SoundCloud listeners app setup we use the following setup. Let me know what you think about it.
|
Yes, too bad Spotless will use different configuration with the native intelliJ one and will add more dependencies. And I think I misunderstand this statement
I thought you want the gradle task to fix the wrong code style too! For the gradle task, I think it will only work in Mac environment. To make this work with Linux (unsure with Windows!) I think we will need to add
This task is compatible with both MacOS and Linux (and other Unix based OS too). Another way is we can write an .sh script and run it independently, and for Windows platform we can also write .bat script (Might be need some time to learn it first!). Let me know what do you think about it 😃 |
_idea-codestyle.xml.zip
The text was updated successfully, but these errors were encountered: