Hello folks, I am wondering if the maintainers could shed some light on https://github.com/detekt/detekt/pull/3317#issuecomment-750928816 for the strategy to impose ordering on specific rules. The ordering complicates ordering and reporting in my understanding.
s
Sha Sha Chu
12/24/2020, 5:22 PM
Those particular changes precede us taking over maintenance of ktlint so unfortunately I don't have a lot of insight into them. I will say that the idea of autocorrect is difficult and has limitations that I think we'll always run into unless we turn the tool into a pretty-printer and reformat and write out the entire file at once rather than doing in-place corrections.
c
chao
12/24/2020, 5:39 PM
That’s good point. I may need to look into the IntelliJ to see how it performs code formatting.