Skip to content
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

Fixed KdocComments #1754

Merged
merged 30 commits into from
Oct 16, 2023
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
37edc00
Fixed KdocComments
DrAlexD Sep 28, 2023
fc88b09
Merge branch 'master' into feature/fix-kdoc-comments
DrAlexD Sep 28, 2023
c1ebe74
- fix
DrAlexD Sep 28, 2023
d5e31fa
Merge branch 'feature/fix-kdoc-comments' of https://github.com/DrAlex…
DrAlexD Sep 28, 2023
bdef44b
- fix
DrAlexD Sep 28, 2023
382736a
- fix
DrAlexD Sep 28, 2023
d01ba9e
- fixed case when @property text in class-KDoc didn't create for KDoc…
DrAlexD Oct 2, 2023
96e3c8f
- fix
DrAlexD Oct 2, 2023
96a271c
- fix
DrAlexD Oct 2, 2023
a10486b
- fix affected classes
DrAlexD Oct 2, 2023
88f429f
- fix affected classes
DrAlexD Oct 2, 2023
8c4d75c
Merge branch 'master' into feature/fix-kdoc-comments
DrAlexD Oct 2, 2023
27fb72f
Merge branch 'master' into feature/fix-kdoc-comments
DrAlexD Oct 9, 2023
7a85200
Merge branch 'master' into feature/fix-kdoc-comments
DrAlexD Oct 9, 2023
19e59ff
- added non-fixed warning `KDOC_EXTRA_PROPERTY` for redundant `@param…
DrAlexD Oct 9, 2023
eec619c
Merge branch 'feature/fix-kdoc-comments' of https://github.com/DrAlex…
DrAlexD Oct 9, 2023
77fc1ba
- fix
DrAlexD Oct 9, 2023
2e180cb
- fix
DrAlexD Oct 9, 2023
67d18fa
- fix
DrAlexD Oct 9, 2023
43fadfc
- fix
DrAlexD Oct 10, 2023
d16ad71
- fix
DrAlexD Oct 10, 2023
78d8012
- fix
DrAlexD Oct 10, 2023
62c5bd3
- added configuration for `@param` tags creation: `isParamTagsForPara…
DrAlexD Oct 11, 2023
91016b9
- fix
DrAlexD Oct 11, 2023
b7ba451
- fix
DrAlexD Oct 11, 2023
5cfbb44
- fix docs
DrAlexD Oct 12, 2023
62bf445
- fix docs
DrAlexD Oct 12, 2023
e986c4d
- fix docs
DrAlexD Oct 16, 2023
275e45c
- fix
DrAlexD Oct 16, 2023
b03af2c
Merge branch 'master' into feature/fix-kdoc-comments
DrAlexD Oct 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
- fix
  • Loading branch information
DrAlexD committed Oct 16, 2023
commit 275e45c936fa519514949ae11f84c6e64dd83f4a
Original file line number Diff line number Diff line change
@@ -229,7 +229,7 @@ class KdocComments(configRules: List<RulesConfig>) : DiktatRule(
.findChildrenMatching { it.elementType == KDocElementTypes.KDOC_SECTION }
.firstOrNull()
val lastTextInDescription = firstDescriptionSection
?.findChildrenMatching { it.elementType == KDocTokens.TEXT || it.elementType == KDocTokens.MARKDOWN_LINK }
?.findChildrenMatching { it.elementType == KDocTokens.TEXT || it.elementType == KDocTokens.CODE_BLOCK_TEXT || it.elementType == KDocTokens.MARKDOWN_LINK }
?.lastOrNull { it.text.trim().isNotEmpty() }

val isHasDescription = lastTextInDescription != null