mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Merge pull request #11436 from igfoo/igfoo/NamingConventionsRefTypes
Kotlin: Enable java/misnamed-type query
This commit is contained in:
@@ -12,7 +12,8 @@ import java
|
||||
|
||||
from RefType t
|
||||
where
|
||||
t.getFile().isJavaSourceFile() and
|
||||
t.fromSource() and
|
||||
not t instanceof AnonymousClass and
|
||||
not t.isCompilerGenerated() and
|
||||
not t.getName().substring(0, 1).toUpperCase() = t.getName().substring(0, 1)
|
||||
select t, "Class and interface names should start in uppercase."
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* The query `java/misnamed-type` is now enabled for Kotlin.
|
||||
Reference in New Issue
Block a user