Exclude Kotlin files

This commit is contained in:
Tamas Vajk
2025-07-01 11:38:13 +02:00
parent 09a2aeead6
commit fd8b37cc28

View File

@@ -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 + "."