You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * S3 implementation of Storage * * @param s3Operations [S3Operations] to operate with S3 * @param K type of key*/abstractclassAbstractReactiveStorage<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)
The text was updated successfully, but these errors were encountered:
### What's done:
- fixed case when `KDOC_EXTRA_PROPERTY` warning generation didn't take into account types in generic classes.
- added configuration `isParamTagsForGenericTypes` for `@param` tags creation for types in generic classes.
- added fixed warnings `KDOC_NO_CONSTRUCTOR_PROPERTY` for cases when configuration option are on, and then generic types must have `@param` tags in class-KDoc. Additionally added logic for replacing incorrect tag with correct one regardless of whether configuration is enabled or not.
- added new warning and fix tests.
Closessaveourtool#1825
### What's done:
- fixed case when `KDOC_EXTRA_PROPERTY` warning generation didn't take into account types in generic classes.
- added configuration `isParamTagsForGenericTypes` for `@param` tags creation for types in generic classes.
- added fixed warnings `KDOC_NO_CONSTRUCTOR_PROPERTY` for cases when configuration option are on, and then generic types must have `@param` tags in class-KDoc. Additionally added logic for replacing incorrect tag with correct one regardless of whether configuration is enabled or not.
- added new warning and fix tests.
Closes#1825
Steps to reproduce:
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)
The text was updated successfully, but these errors were encountered: