Skip to content
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

[FORMAT]Kotlin source files need format #69

Closed
XinyueZ opened this issue Sep 11, 2018 · 5 comments
Closed

[FORMAT]Kotlin source files need format #69

XinyueZ opened this issue Sep 11, 2018 · 5 comments

Comments

@XinyueZ
Copy link
Contributor

XinyueZ commented Sep 11, 2018

The source code has a strange format and incompatible with IDE. Each time when people want to add codes there're different tabs and spaces. Has the project used common Kotlin format which is provided in Android Studio ?

@XinyueZ XinyueZ changed the title [format]Kotlin source files need format [FORMAT]Kotlin source files need format Sep 11, 2018
@andretietz
Copy link
Owner

dc057e7

@XinyueZ
Copy link
Contributor Author

XinyueZ commented Sep 11, 2018

why not enable ktlint which can complete code format automatically and with standard format scheme ?

@andretietz
Copy link
Owner

good idea, I am on it

@alashow
Copy link

alashow commented Sep 12, 2018

I recommend spotless which can use ktlint and provides gradle task for formatting.

@XinyueZ
Copy link
Contributor Author

XinyueZ commented Sep 12, 2018

It's done with ktlint, @alashow however, I have not seen the usage of ./gradlew spotlessApply which can format project's Kotlin files automatically. Maybe there should be a new issue in this case.
I expect to see an approach from your side 👀 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants