Hey, i searched the docs for this but either it do...
# detekt
r
Hey, i searched the docs for this but either it doesn’t exist or i’m bad at searching… Is there a way to forbid using specific types? Specifically, i want to forbid using
Set<SomeInterfaceType>
on public APIs in our project because the Swift interop for it is really bad.
b
There is not. The nearest thing is forbid import but
Set
doesn't need import so I don't think it would help you. Can you open an issue to track this feature?
👍 1
r
of course, thank you for the quick reply
n
Wouldn’t that be possible with Type Resolution?
b
It would be possible to implement. It is not implemented.