mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Exclude .kt files from misnamed reftype query
This commit is contained in:
@@ -12,7 +12,7 @@ import java
|
||||
|
||||
from RefType t
|
||||
where
|
||||
t.fromSource() and
|
||||
t.getFile().isJavaSourceFile() and
|
||||
not t instanceof AnonymousClass and
|
||||
not t.getName().substring(0, 1).toUpperCase() = t.getName().substring(0, 1)
|
||||
select t, "Class and interface names should start in uppercase."
|
||||
|
||||
Reference in New Issue
Block a user