mirror of
https://github.com/github/codeql.git
synced 2026-06-14 01:11:09 +02:00
Kotlin: exclude generated code from useless parameter check
This commit is contained in:
@@ -304,6 +304,9 @@ class RootdefCallable extends Callable {
|
||||
this.getAnAnnotation() instanceof OverrideAnnotation
|
||||
or
|
||||
this.hasModifier("override")
|
||||
or
|
||||
// Exclude generated callables, such as `...$default` ones extracted from Kotlin code.
|
||||
this.isCompilerGenerated()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user