PackageDirectoryMismatchInspection should report when a package statement is missing

#KT-13549 Fixed
This commit is contained in:
Dmitry Gridin
2019-04-24 15:46:54 +07:00
parent 2ae30de980
commit 0198df4935
18 changed files with 136 additions and 40 deletions
@@ -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>
@@ -0,0 +1,3 @@
{
"inspectionClass": "org.jetbrains.kotlin.idea.refactoring.move.changePackage.PackageDirectoryMismatchInspection"
}