saveourtool / diktat

Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
https://diktat.saveourtool.com
MIT License
541 stars 39 forks source link

Ordering of rules after several re-runs #1774

Closed nulls closed 1 year ago

nulls commented 1 year ago

Workflow of test ManyLineTransformInLongLineTest

  1. WhiteSpaceRule splits to several lines
  2. IndentationRule adds whitespaces at the start
  3. LineLength splits again (it's from second run)
  4. IndentationRule adds whitespaces at the start (it's from second run)

_Originally posted by @nulls in https://github.com/saveourtool/diktat/pull/1769#discussion_r1380057367_

nulls commented 1 year ago

Fixed now by running a fix before running a warn detection #1769