In the analysis api(`analyze` set of apis) is ther...
# k2-adopters
a
In the analysis api(
analyze
set of apis) is there any equivalent api like
WhenChecker.getMissingCases
?
r
a
Hi @Roman Golyshev one more thing since this method is marked as
@KaIdeApi
is it safe to use outside the ide?
r
The annotation says this:
Copy code
Internal API which is used only from the IntelliJ Kotlin plugin. Such an API should not be used in other places since it has no compatibility guarantees
Regarding this particular method, I doubt that it would change much in the future, but still
If you are writing the code for the IDEA plugin (and not a standalone Analysis API Mode), I guess that it should be “safe” to use Outside of IDEA plugin - not so much
a
Earlier we were using
WhenChecker.getMissingCases
for a detekt rule, now since detekt is not a Idea plugin should we not use it? If not, then what should be the alternate for this?
Detekt Rule name:
OptionalUnit
Since this rule is being migrated to use Analysis api, similar api is not being present in the same