-
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.
Bugfix. ClassCastException in IndentationRule when blank line is adde…
…d after @implNote tag in KDoc (#527) * bugfix/class-cast-exception-kdoc(#480) ### What's done: * Fixed bugs
- Loading branch information
Showing
9 changed files
with
70 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ class SpecialTagsInKdoc { | |
* @implSpec bar | ||
* | ||
* @implNote baz | ||
* | ||
*/ | ||
fun test() = Unit | ||
} |
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 |
---|---|---|
|
@@ -45,3 +45,10 @@ class Example { | |
} | ||
} | ||
|
||
class Foo { | ||
/** | ||
* @implNote lorem ipsum | ||
*/ | ||
private fun foo() {} | ||
} | ||
|
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 |
---|---|---|
|
@@ -40,3 +40,12 @@ class Example { | |
foo() | ||
} | ||
} | ||
|
||
|
||
class Foo { | ||
/** | ||
* @implNote lorem ipsum | ||
*/ | ||
private fun foo() {} | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example4Expected.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,16 @@ | ||
package org.cqfn.diktat | ||
|
||
class SpecialTagsInKdoc { | ||
/** | ||
* Empty function to test KDocs | ||
* @apiNote foo | ||
* | ||
* @implSpec bar | ||
* | ||
* @implNote baz | ||
* | ||
* @return | ||
*/ | ||
fun test() = Unit | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example4Test.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,15 @@ | ||
package org.cqfn.diktat | ||
|
||
class SpecialTagsInKdoc { | ||
|
||
/** | ||
* Empty function to test KDocs | ||
* @apiNote foo | ||
* @implSpec bar | ||
* | ||
* | ||
* @implNote baz | ||
*/ | ||
fun test() = Unit | ||
} | ||
|