Hi all! Regarding <InvalidPackageDeclaration>: Co...
# detekt
p
Hi all! Regarding InvalidPackageDeclaration: Coding conventions explicitly allows not creating "superfluous" directories. But I should explicitly tell detekt the common prefix. Couldn't detekt figure it out itself?
s
What exactly do you want to specify in the rule configuration? What do you want to achieve?
p
If I have a project with one file
src/main/kotlin/network/socket/Foo.kt
, and having that with package
org.example.kotlin.network.socket
, then ktlint should not complain
I admit then ktlint have to "figure out" the common root package name.
b
Isn't the
rootPackage
configuration what you are looking for?