diff --git a/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/NamingConventionsRefTypes.expected b/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/NamingConventionsRefTypes.expected new file mode 100644 index 00000000000..bc00b1c4761 --- /dev/null +++ b/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/NamingConventionsRefTypes.expected @@ -0,0 +1,3 @@ +| 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. | diff --git a/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/NamingConventionsRefTypes.qlref b/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/NamingConventionsRefTypes.qlref new file mode 100644 index 00000000000..6f76aed32cb --- /dev/null +++ b/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/NamingConventionsRefTypes.qlref @@ -0,0 +1 @@ +Advisory/Naming/NamingConventionsRefTypes.ql \ No newline at end of file diff --git a/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/Test.kt b/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/Test.kt new file mode 100644 index 00000000000..f62497d59c6 --- /dev/null +++ b/java/ql/test/kotlin/query-tests/NamingConventionsRefTypes/Test.kt @@ -0,0 +1,12 @@ +class Foo { + fun myFun() { + val nestedStr by lazy { + "another string" + } + + fun nestedFun() { + } + } +} + +class aaaa {} \ No newline at end of file