mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Kotlin: exclude Kotlin files from java/underscore-identifier
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
| Test.kt:8:14:8:25 | Exception _ | Use of underscore as a one-character identifier. |
|
||||
|
||||
Reference in New Issue
Block a user