PackageDirectoryMismatchInspection should report when a package statement is missing
#KT-13549 Fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
class Foo {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<problems>
|
||||
<problem>
|
||||
<file>rootPackageMatched.kt</file>
|
||||
<line>1</line>
|
||||
<module>testMismatchedProjectAndDirectoryRoot_MismatchedProjectAndDirectoryRoot</module>
|
||||
<entry_point TYPE="file" FQNAME="rootPackageMatched.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Package name does not match containing directory</problem_class>
|
||||
<description>Package directive doesn't match file location</description>
|
||||
</problem>
|
||||
</problems>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.PackageDirectoryMismatchInspection"
|
||||
}
|
||||
Reference in New Issue
Block a user