Kotlin: exclude Kotlin files from java/underscore-identifier

This commit is contained in:
Tamas Vajk
2022-10-24 09:05:25 +02:00
parent 0192ae8331
commit d585839b7e
2 changed files with 1 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class IdentifierElement extends Element {
from IdentifierElement e, string msg
where
e.fromSource() and
e.getCompilationUnit().isJavaSourceFile() and
not e.(Constructor).isDefaultConstructor() and
(
e.getName() = "_" and

View File

@@ -1 +0,0 @@
| Test.kt:8:14:8:25 | Exception _ | Use of underscore as a one-character identifier. |