-
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
New Rule COMMENTS_BY_KDOC was implemented #1350
Conversation
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.
Found 96 potential problems in the proposed changes. Check the Files changed tab for more details.
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.
Found 96 potential problems in the proposed changes. Check the Files changed tab for more details.
Codecov Report
@@ Coverage Diff @@
## master #1350 +/- ##
============================================
+ Coverage 83.56% 83.59% +0.02%
- Complexity 2564 2567 +3
============================================
Files 106 106
Lines 7278 7291 +13
Branches 2017 2018 +1
============================================
+ Hits 6082 6095 +13
Misses 353 353
Partials 843 843
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
### What's done: * New Rule COMMENTS_BY_KDOC was added to check if code block contains kdoc comments * and fix it by converting to block comment * tests and docs were added * Closes: #828
524acba
to
34efd45
Compare
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter2/KdocCommentsWarnTest.kt
Fixed
Show fixed
Hide fixed
|/** | ||
| * right place for kdoc | ||
| */ | ||
|class Example { |
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.
could you please also check top-level methods (in Kotlin you can do it without a class and from AST perspective they can differ)?
fun foo() {
/**
*/
}
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.
done
lgtm |
What's done:
Which rule and warnings did you add?
This pull request closes
Actions checklist
Fixme