-
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.
NullPointerException on KDOC inspection (#1334)
* NullPointerException on KDOC inspection ### What's done: * fixed NullPointerException on KDOC inspection Closes #1331
- Loading branch information
1 parent
d7810d6
commit 92f2fef
Showing
10 changed files
with
98 additions
and
4 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
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
14 changes: 14 additions & 0 deletions
14
diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example8Expected.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,14 @@ | ||
package org.cqfn.diktat | ||
|
||
fun foo() { | ||
val sum: (Int, Int, Int,) -> Int = fun( | ||
x, | ||
y, | ||
z | ||
): Int = x + y + x | ||
println(sum(8, 8, 8)) | ||
} | ||
|
||
fun boo() { | ||
val message = fun() = println("Hello") | ||
} |
16 changes: 16 additions & 0 deletions
16
diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example8Test.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 | ||
|
||
fun foo() { | ||
val sum: (Int, Int, Int,) -> Int = fun( | ||
x, | ||
y, | ||
z | ||
): Int { | ||
return x + y + x | ||
} | ||
println(sum(8, 8, 8)) | ||
} | ||
|
||
fun boo() { | ||
val message = fun()=println("Hello") | ||
} |