Exclude .kt files from misnamed reftype query

This commit is contained in:
Tamas Vajk
2022-11-16 14:59:20 +01:00
parent e547be5e9a
commit c1be93a34c
2 changed files with 1 additions and 4 deletions

View File

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

View File

@@ -1,3 +0,0 @@
| Test.kt:3:23:5:9 | | Class and interface names should start in uppercase. |
| Test.kt:7:9:8:9 | | Class and interface names should start in uppercase. |
| Test.kt:12:1:12:13 | aaaa | Class and interface names should start in uppercase. |