https://kotlinlang.org logo
#announcements
Title
# announcements
j

jaguililla

08/20/2019, 5:20 PM
Hi, do someone knows of any Kotlin linter which allow you to fail the build if you have imports of a given package in another's package code?
👍 1
j

jaguililla

08/20/2019, 5:38 PM
That is cool, but I wanted something like: don't allow to import
com.example.controller.*
inside
com.example.model.*
s

SiebelsTim

08/20/2019, 6:01 PM
I guess you can basically achieve that using a multi-project build where you don't put the controller project in the model's project dependencies
j

jaguililla

08/20/2019, 6:19 PM
That is a nice approach, however I would prefer to achieve it in the same module. But seems to be hard to do out-of-the-box... I'm going to check Detekt custom rules
2 Views