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

False `KDOC_EXTRA_PROPERTY` for type in generic classes #1825

Closed nulls closed 8 months ago

nulls commented 8 months ago

Steps to reproduce:

/**
 * S3 implementation of Storage
 *
 * @param s3Operations [S3Operations] to operate with S3
 * @param K type of key
 */
abstract class AbstractReactiveStorage<K : Any>(
    s3Operations: S3Operations,
) : ReactiveStorage<K> {
  // TODO
}

Diktat 2.0 generates D:/projects/save-cloud/save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/storage/AbstractReactiveStorage.kt:17:4: [KDOC_EXTRA_PROPERTY] There is property in KDoc which is not present in the class: @param K type of key (cannot be auto-corrected) (diktat-ruleset:kdoc-comments)