mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Kotlin: add potentially static inner class test
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| Test.kt:3:5:5:5 | Companion | Companion should be made static, since the enclosing instance is not used. |
|
||||
@@ -0,0 +1 @@
|
||||
Performance/InnerClassCouldBeStatic.ql
|
||||
@@ -0,0 +1,6 @@
|
||||
class A {
|
||||
fun fn1() {}
|
||||
companion object {
|
||||
fun fn2() {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user