You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is IMO wrong, as the trailing comma that was removed is useful + it's added by IntelliJ when formatting the file regardless
Steps to Reproduce
Your Environment
Version of ktlint used: 0.44.0
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): lintKotlin
Version of Gradle used (if applicable): 7.4
Operating System and version: -
Link to your project (if it's a public repository): -
The text was updated successfully, but these errors were encountered:
lwasyl
changed the title
False-negative trailing comma for annotation array parameter
Incorrect "unnecessary trailing comma comma" for annotation array parameter
Feb 22, 2022
@lwasyl This depends on your configuration. If you are using a .editorconfig file (recommended approach) then please check whether properties below have been set:
Expected Behavior
The following file should not trigger errors:
Observed Behavior
When using KtLint to format the file, it removes the comma after
]
producingwhich is IMO wrong, as the trailing comma that was removed is useful + it's added by IntelliJ when formatting the file regardless
Steps to Reproduce
Your Environment
lintKotlin
The text was updated successfully, but these errors were encountered: