1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-22 13:24:46 +01:00
Yuito-app-android/app
Levi Bard 40d771d60f
Kotlin - Enable trailing comma (#3959)
Trailing commas on Kotlin sources [has many
advantages](https://pinterest.github.io/ktlint/0.49.0/rules/standard/#trailing-comma-on-call-site):
- It makes version-control diffs cleaner – as all the focus is on the
changed value.
- It makes it easy to add and reorder elements – there is no need to add
or delete the comma if you manipulate elements.
- It simplifies code generation, for example, for object initializers.
The last element can also have a comma.

This PR doesn't go as far as require it, but tweaks KtLint to at least
allow it.

The two `.kt` files prove that the KtLint rules have been properly
disabled.
2023-09-08 09:17:50 +02:00
..
schemas/com.keylesspalace.tusky.db.AppDatabase Rename "Trending" to "TrendingTags" or similar where necessary (#3906) 2023-08-19 12:54:35 +02:00
src Kotlin - Enable trailing comma (#3959) 2023-09-08 09:17:50 +02:00
build.gradle Add newLintBaseline task (#3925) 2023-08-07 19:30:21 +02:00
getGitSha.gradle
lint-baseline.xml Merge branch 'develop' into refactor_instancemute 2023-09-06 08:55:34 +02:00
lint.xml Use lint version 8.1.0 to fix erroneous warning about forEach (#3903) 2023-07-30 21:45:43 +02:00
proguard-rules.pro