Closed DrAlexD closed 1 year ago
Merging #1754 (b03af2c) into master (e0fb721) will increase coverage by
0.33%
. The diff coverage is85.37%
.
@@ Coverage Diff @@
## master #1754 +/- ##
============================================
+ Coverage 76.75% 77.09% +0.33%
- Complexity 2301 2376 +75
============================================
Files 126 126
Lines 8295 8408 +113
Branches 2081 2131 +50
============================================
+ Hits 6367 6482 +115
+ Misses 997 976 -21
- Partials 931 950 +19
Files | Coverage Δ | |
---|---|---|
...lin/com/saveourtool/diktat/cli/DiktatProperties.kt | 0.00% <ø> (ø) |
|
...n/com/saveourtool/diktat/common/cli/CliArgument.kt | 0.00% <ø> (ø) |
|
...aveourtool/diktat/plugin/gradle/DiktatExtension.kt | 100.00% <ø> (ø) |
|
...rtool/diktat/plugin/gradle/tasks/DiktatTaskBase.kt | 61.53% <ø> (ø) |
|
...om/saveourtool/diktat/ktlint/DiktatReporterImpl.kt | 0.00% <ø> (ø) |
|
...m/saveourtool/diktat/ruleset/constants/Warnings.kt | 96.36% <ø> (ø) |
|
...com/saveourtool/diktat/ruleset/rules/DiktatRule.kt | 62.50% <ø> (ø) |
|
...uleset/rules/chapter3/MultipleModifiersSequence.kt | 93.44% <ø> (ø) |
|
.../ruleset/rules/chapter3/files/TopLevelOrderRule.kt | 92.15% <ø> (ø) |
|
...diktat/ruleset/rules/chapter2/kdoc/KdocComments.kt | 88.81% <85.37%> (+7.00%) |
:arrow_up: |
What's done:
KDOC_NO_CONSTRUCTOR_PROPERTY
toKDOC_NO_CONSTRUCTOR_PROPERTY_WITH_COMMENT
in some cases when property or parameter has comment before.KDOC_NO_CONSTRUCTOR_PROPERTY_WITH_COMMENT
fixable for case when property or parameter has any tags in KDoc-comment before. If it has = non-fixed.@param
tags creation:isParamTagsForParameters
andisParamTagsForPrivateProperties
.KDOC_NO_CONSTRUCTOR_PROPERTY
andKDOC_NO_CONSTRUCTOR_PROPERTY_WITH_COMMENT
for cases when configuration options are on, and thenprivate
properties and parameters 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.KDOC_EXTRA_PROPERTY
for redundant@param
tags in class-KDoc.@property
or@param
tag exist in class-KDoc.It's part of #1737