So yes we have the All-open compiler plugin, reference https://kotlinlang.org/docs/reference/compiler-plugins.html
I am one of those people in the “open by default” camp (we lost, tears were had, moving on …). Without rehashing all the reasons … I look at the “All-Open” compiler plugin and think it is sort of ok but really I don’t want to limit it to specific annotations but instead just be “open by default” where instead you need the explicit final keyword.
Now to me it looks like “open by default” can be done as a compiler plugin when I look at … https://github.com/JetBrains/kotlin/blob/master/plugins/allopen/allopen-cli/src/AllOpenDeclarationAttributeAltererExtension.kt
… assuming I am interpreting that code correctly.
Is anyone in the process of building an “Open by default” compiler plugin?
Any thoughts on if this could / should be an officially supplied compiler plugin?
I realise this is old ground but I just like to be able to create basic test doubles without going open class, open fun, open fun … that seems silly to me. Perhaps there should be a standard @OpenByDefault for those people like me?