-
Notifications
You must be signed in to change notification settings - Fork 516
Closed
Description
The trailing comma experimental rule is not working properly for this file:
Android Studio works correctly and adds a comma, but Ktlint doesn't and even removes the comma added by Android Studio!
Expected Behavior
Add a comma and do not remove the one from the Android Studio code styler
Observed Behavior
Do not add a comma and also remove the one from the Android Studio code styler
Steps to Reproduce
Take this file and enable both these rules in .editorconfig
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
execute this command:
ktlint -F --experimental "app/src/**/*.kt"
Your Environment
- Version of ktlint used: CLI 0.43.0
- Operating System and version: Win 11
- Link to your project (if it's a public repository): https://github.com/mohsenoid/Rick-and-Morty/tree/294ec735fb8a59a4ca5f3abc7c556b713cd9c82a
Metadata
Metadata
Assignees
Labels
No labels