mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Exclude serialization constructors from useless parameters check
This commit is contained in:
@@ -307,6 +307,12 @@ class RootdefCallable extends Callable {
|
||||
or
|
||||
// Exclude generated callables, such as `...$default` ones extracted from Kotlin code.
|
||||
this.isCompilerGenerated()
|
||||
or
|
||||
// Exclude Kotlin serialization constructors.
|
||||
this.(Constructor)
|
||||
.getParameterType(this.getNumberOfParameters() - 1)
|
||||
.(RefType)
|
||||
.hasQualifiedName("kotlinx.serialization.internal", "SerializationConstructorMarker")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user