-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kdoc fixer false-negative: not generating a Kdoc for several public f…
…unctions ### What's done: * fixed bug in MISSING_KDOC_ON_FUNCTION Closes #965
- Loading branch information
1 parent
a4ce78f
commit 347b8ba
Showing
5 changed files
with
66 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...doc/package/src/main/kotlin/org/cqfn/diktat/kdoc/methods/MissingKdocOnFunctionExpected.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package test.paragraph2.kdoc | ||
|
||
class Example { | ||
/** | ||
* @return | ||
*/ | ||
fun hasNoChildren() = children.size == 0 | ||
|
||
/** | ||
* @return | ||
*/ | ||
fun getFirstChild() = children.elementAtOrNull(0) | ||
} |
7 changes: 7 additions & 0 deletions
7
...h2/kdoc/package/src/main/kotlin/org/cqfn/diktat/kdoc/methods/MissingKdocOnFunctionTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package test.paragraph2.kdoc | ||
|
||
class Example { | ||
fun hasNoChildren() = children.size == 0 | ||
|
||
fun getFirstChild() = children.elementAtOrNull(0) | ||
} |