mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Kotlin: Add FP test case for useless parameter query
This commit is contained in:
@@ -19,3 +19,6 @@ object O {}
|
||||
fun C.fn() {}
|
||||
fun C.Companion.fn() {}
|
||||
fun O.fn() {}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun fn2(a: Int) {}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
| Test.kt:11:8:11:18 | a | The parameter 'a' is never used. |
|
||||
| Test.kt:19:5:19:5 | <this> | The parameter '<this>' is never used. |
|
||||
| Test.kt:24:9:24:14 | a | The parameter 'a' is never used. |
|
||||
|
||||
Reference in New Issue
Block a user