Jellyfin-android: Use EditorConfig from Android TV app

Created on 7 Aug 2020  路  6Comments  路  Source: jellyfin/jellyfin-android

We have 2 Android apps now based on Kotlin. I think it would be a good thing to have the same styling guidelines for both of them. At this moment the android-next app uses spaces as indentation while Android TV chose to use tabs.

The EditorConfig for Android TV is here. We could just copy it over and reformat all Kotlin files.

enhancement needs discussion

Most helpful comment

I encourage everyone to read this post on the topic. It certainly solidified my opinion to be firmly in favor of tabs.

https://www.reddit.com/r/javascript/comments/c8drjo/nobody_talks_about_the_real_reason_to_use_tabs/

All 6 comments

I see, while I'm personally not a fan of using tabs for indentation, I can still pull in config if the majority of the team is in favor. I mean, I don't want to start a flame-war. 馃槅

I'm also not a fan of tabs.

It wasn't my intention to start a discussion. We already had that when choosing the indentation for the ATV app. We could use a different indentation for both repositories but it seems more logical to have the consistency.

I encourage everyone to read this post on the topic. It certainly solidified my opinion to be firmly in favor of tabs.

https://www.reddit.com/r/javascript/comments/c8drjo/nobody_talks_about_the_real_reason_to_use_tabs/

There are no half tabs

Here's the official code style: https://kotlinlang.org/docs/reference/coding-conventions.html

Let's just use that

Was this page helpful?
0 / 5 - 0 ratings