mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Exclude .kt files from serializable inner class query
This commit is contained in:
@@ -77,7 +77,7 @@ predicate exceptions(NestedClass inner) {
|
||||
|
||||
from NestedClass inner, Class outer, string advice
|
||||
where
|
||||
inner.fromSource() and
|
||||
inner.getFile().isJavaSourceFile() and
|
||||
isSerializable(inner) and
|
||||
outer = enclosingInstanceType+(inner) and
|
||||
not isSerializable(outer) and
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
| NonSerializableInnerClassTest.kt:4:3:5:3 | X | Serializable inner class of non-serializable class $@. Consider making the class static or implementing readObject() and writeObject(). | NonSerializableInnerClassTest.kt:3:1:6:1 | A | A |
|
||||
| NonSerializableInnerClassTest.kt:9:3:10:3 | X | Serializable inner class of non-serializable class $@. Consider making the class static or implementing readObject() and writeObject(). | NonSerializableInnerClassTest.kt:8:1:11:1 | B | B |
|
||||
|
||||
Reference in New Issue
Block a user