ursus
06/17/2026, 10:33 AMForbiddenImport
hey, can I have this suppressed at a import level - or is file level the only way?
I need to suppress it due to 3rd party library api using such banned import - but then the file is not getting checked at all of other banned importsephemient
06/17/2026, 1:14 PMursus
06/17/2026, 1:16 PMephemient
06/17/2026, 1:23 PMursus
06/17/2026, 1:26 PMorg.json types (I wrap the lib in one file, its not exposed anywhere else)
and my rule is to ban org.json in favor of kotlinx.serializationursus
06/17/2026, 1:26 PMephemient
06/17/2026, 1:34 PM<?xml version='1.0' encoding='UTF-8'?>
<SmellBaseline>
<ManuallySuppressedIssues/>
<CurrentIssues>
<ID>ForbiddenImport:JsonCompat.kt$import org.json.JsonObject</ID>
</CurrentIssues>
</SmellBaseline>
and don't apply to other files or other importsursus
06/17/2026, 1:47 PMephemient
06/17/2026, 1:48 PM