Skip to content

Commit 834cb1b

Browse files
committed
Exclude Kotlin files
1 parent 04e3ca8 commit 834cb1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/src/Violations of Best Practice/SpecialCharactersInLiterals/NonExplicitControlAndWhitespaceCharsInLiterals.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ from ReservedUnicodeInLiteral literal, int charIndex, int codePoint
4444
where
4545
literal.getIndexStart() = charIndex and
4646
literal.getLiteral().codePointAt(charIndex) = codePoint and
47-
not literal.getEnclosingCallable() instanceof LikelyTestMethod
47+
not literal.getEnclosingCallable() instanceof LikelyTestMethod and
48+
not literal.getFile().isKotlinSourceFile()
4849
select literal,
4950
"Literal value contains control or non-printable whitespace character(s) starting with Unicode code point "
5051
+ codePoint + " at index " + charIndex + "."

0 commit comments

Comments
 (0)