Allow underscore in packages and forbid uppercase letters (KT-27900)

This commit is contained in:
Nikolay Krasko
2018-12-05 17:38:23 +03:00
parent e0d3abc819
commit 2373c9d838
9 changed files with 25 additions and 2 deletions
@@ -0,0 +1 @@
package one.two.three
@@ -0,0 +1 @@
package one.two.Three
@@ -0,0 +1,7 @@
<problems>
<problem>
<file>hasUpperCase.kt</file>
<line>1</line>
<description>Package name &lt;code&gt;one.two.Three&lt;/code&gt; doesn't match regex '[a-z][A-Za-z\d]*_?(\.[a-z][A-Za-z\d]*_?)*' #loc</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.PackageNameInspection
@@ -0,0 +1 @@
package com.fun_.test
@@ -0,0 +1 @@
package org.so_so.example
@@ -0,0 +1 @@
package com.example._123name