https://kotlinlang.org logo
#detekt
Title
# detekt
r

Rainer Schlonvoigt

01/10/2022, 10:50 AM
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

Brais Gabin

01/10/2022, 11:05 AM
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

Rainer Schlonvoigt

01/10/2022, 11:06 AM
of course, thank you for the quick reply
n

Nicolas Picon

01/11/2022, 3:22 PM
Wouldn’t that be possible with Type Resolution?
b

Brais Gabin

01/11/2022, 4:33 PM
It would be possible to implement. It is not implemented.
4 Views