Allow underscore in packages and forbid uppercase letters (KT-27900)
This commit is contained in:
@@ -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 <code>one.two.Three</code> 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
|
||||
Reference in New Issue
Block a user