Move: Implement inspection which reports mismatch between package directive and containing directory

This commit is contained in:
Alexey Sedunov
2015-04-29 11:49:18 +03:00
parent fe96a8563a
commit d096e74c10
66 changed files with 612 additions and 20 deletions
@@ -0,0 +1,10 @@
// File: foo/bar/test.kt
<spot>package foo.bar</spot>
import bar.foo.OtherClass
class MyClass: OtherClass {
fun myFun() {
}
}
@@ -0,0 +1,10 @@
// File: bar/foo/test.kt
<spot>package foo.bar</spot>
import bar.foo.OtherClass
class MyClass: OtherClass {
fun myFun() {
}
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention moves file to the directory matching its package directive.
</body>
</html>