diktat icon indicating copy to clipboard operation
diktat copied to clipboard

Set up a rule `TrailingComma` for our code

Open kentr0w opened this issue 4 years ago • 3 comments

kentr0w avatar Feb 03 '21 10:02 kentr0w

Already done: https://github.com/analysis-dev/diktat/blob/cbeaa96975dd3d9d7971fe81678ed4c060038708/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/TrailingCommaRule.kt

orchestr7 avatar Apr 27 '22 13:04 orchestr7

This issue was about our own check: https://github.com/analysis-dev/diktat/blob/d8c4cea250a651244fb6bad0ecf9bad505ece89b/diktat-analysis.yml#L242-L260 We need to enable all these options, run diktat fixer and update the code. @Arrgentum please take a look

petertrr avatar Apr 27 '22 13:04 petertrr

We also have this You have enabled TRAILING_COMMA, but rule will remain inactive until you explicitly set configuration options. See [available-rules.md] for possible configuration options. now, but we probably should enable at least some of the options by default

petertrr avatar Apr 30 '22 08:04 petertrr