simon.vergauwen
12/01/2022, 8:25 AMwasyl
12/01/2022, 8:43 AMbod
12/01/2022, 8:50 AMsimon.vergauwen
12/01/2022, 9:03 AMtbh it probably wouldn’t be too difficult to write your own small tool to go over the filesSomeone told me this should be possible from a KtScript, but I am unsure where to start. Al tools like Detekt, and KtLint have so much build around it requires some time to dig through it.
wasyl
12/01/2022, 9:11 AMsimon.vergauwen
12/01/2022, 9:13 AMOr if you want a Kotlin script that the users can paste and execute, perhaps you can import Ktlint dependency and use its APIs ?🤔 That is probably my best bet then to make it as simple as possible.
bod
12/01/2022, 9:31 AMEmil Kantis
12/01/2022, 12:30 PM@Deprecated
can add imports as quick fix resolution if you use the ReplaceWith
properly.
@Deprecated("message", ReplaceWith("new code", "import 1", "import 2"), level = DeprecationLevel.WARNING)
simon.vergauwen
12/01/2022, 12:42 PMMarit van Dijk
12/01/2022, 3:49 PMMarit van Dijk
12/01/2022, 3:50 PMbod
12/01/2022, 4:00 PMMarit van Dijk
12/02/2022, 7:59 AMMarit van Dijk
12/02/2022, 7:59 AM