Move: Implement inspection which reports mismatch between package directive and containing directory
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// File: bar/foo/test.kt
|
||||
<spot>package bar.foo</spot>
|
||||
|
||||
class MyClass: OtherClass {
|
||||
fun myFun() {
|
||||
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// File: bar/foo/test.kt
|
||||
<spot>package foo.bar</spot>
|
||||
|
||||
import bar.foo.OtherClass
|
||||
|
||||
class MyClass: OtherClass {
|
||||
fun myFun() {
|
||||
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention changes file's package directive so that it matches containing directory.
|
||||
All import directives and usages are updated accordingly
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user