Naming convention inspections

This commit is contained in:
Dmitry Jemerov
2017-06-14 14:04:25 +02:00
parent 6a5d8dcc82
commit f7c17d6a64
29 changed files with 572 additions and 31 deletions
@@ -0,0 +1,16 @@
<problems>
<problem>
<file>test.kt</file>
<line>11</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<description>Enum entry name &lt;code&gt;_Foo&lt;/code&gt; doesn't match regex '[A-Z]([A-Za-z\d]*|[A-Z_\d]*)' #loc</description>
</problem>
<problem>
<file>test.kt</file>
<line>12</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<description>Enum entry name &lt;code&gt;quuxDoo&lt;/code&gt; doesn't match regex '[A-Z]([A-Za-z\d]*|[A-Z_\d]*)' #loc</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.EnumEntryNameInspection
+13
View File
@@ -0,0 +1,13 @@
class a
object b
object FOO_BAR
enum class Foo {
BAR_BAZ,
BAZ_BAR,
GoodName,
_Foo,
quuxDoo,
}