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
521 stars 39 forks source link

Order in processing of ASTNode in KdocComments #1776

Open nulls opened 10 months ago

nulls commented 10 months ago

The problem is not in ordering:

  1. We check KDoc when process CLASS
  2. We fix the KDoc when process VAL_KEYWORD or VAR_KEYWORD inside.

We can move checking KDoc on CLASS level after processing the childs. But probably the fixing of KDoc for class should be done on class level

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

nulls commented 10 months ago

Relates to #1538