mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Exclude Kotlin files
This commit is contained in:
@@ -44,7 +44,8 @@ from ReservedUnicodeInLiteral literal, int charIndex, int codePoint
|
||||
where
|
||||
literal.getIndexStart() = charIndex and
|
||||
literal.getLiteral().codePointAt(charIndex) = codePoint and
|
||||
not literal.getEnclosingCallable() instanceof LikelyTestMethod
|
||||
not literal.getEnclosingCallable() instanceof LikelyTestMethod and
|
||||
not literal.getFile().isKotlinSourceFile()
|
||||
select literal,
|
||||
"Literal value contains control or non-printable whitespace character(s) starting with Unicode code point "
|
||||
+ codePoint + " at index " + charIndex + "."
|
||||
|
||||
Reference in New Issue
Block a user