-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest using @property tag in KDoc #332
Conversation
### What's done: Added rule
### What's done: Fixed rule
### What's done: Made rule, tests
### What's done: Fixed all suppress
Codecov Report
@@ Coverage Diff @@
## master #332 +/- ##
============================================
- Coverage 83.18% 83.14% -0.04%
- Complexity 1295 1331 +36
============================================
Files 65 65
Lines 3164 3246 +82
Branches 1004 1027 +23
============================================
+ Hits 2632 2699 +67
- Misses 168 176 +8
- Partials 364 371 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocComments.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/KDocUtils.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/KdocWarnTest.kt
Outdated
Show resolved
Hide resolved
### What's done: Fixed after review
### What's done: Fixed error
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocComments.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocComments.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/KdocWarnTest.kt
Show resolved
Hide resolved
diktat-rules/src/test/resources/test/paragraph2/kdoc/ConstructorCommentNoKDocExpected.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/resources/test/paragraph2/kdoc/ConstructorCommentNoKDocExpected.kt
Show resolved
Hide resolved
/** | ||
* text | ||
*/ | ||
@param:JsonProperty("shortName") private val shortName: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this case not fixed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this property is private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but placing documentation in @property
tag should be preferable if documentation already exists even for private properties.
diktat-rules/src/test/resources/test/paragraph2/kdoc/ConstructorCommentExpected.kt
Show resolved
Hide resolved
### What's done: Change rule's logic
### What's done: renamed variable
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocComments.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocComments.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocComments.kt
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/KdocWarnTest.kt
Outdated
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/KdocWarnTest.kt
Show resolved
Hide resolved
### What's done: Fixed bugs after review
…g-KDoc # Conflicts: # diktat-analysis.yml # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/KDocUtils.kt # diktat-rules/src/main/resources/diktat-analysis-huawei.yml # diktat-rules/src/main/resources/diktat-analysis.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check why build is failing. Also, one more small fix, everything else is good.
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/kdoc/KdocComments.kt
Outdated
Show resolved
Hide resolved
### What's done: Changed smoke test
### What's done: Changed warn message
### What's done: Changed test warn message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…g-KDoc # Conflicts: # diktat-analysis.yml # diktat-rules/src/main/kotlin/generated/WarningNames.kt # diktat-rules/src/main/resources/diktat-analysis-huawei.yml # diktat-rules/src/main/resources/diktat-analysis.yml
Which rule and warnings did you add?
Actions checklist
*[x] closes Suggest using @property tag in KDoc instead of putting comment before property in constructor #302