我如何将绒线快速修复添加到“中”;“固定在整个项目中”;对于Java/Kotlin?

我如何将绒线快速修复添加到“中”;“固定在整个项目中”;对于Java/Kotlin?,kotlin,lint,Kotlin,Lint,我能够使用快速修复程序编写lint警告/错误,以更改IDE中的某些代码 我还知道我可以用@Deprecated标记对Kotlin函数进行标记,如下所示: @Deprecated( level = DeprecationLevel.ERROR, message = "This is wrong", replaceWith = ReplaceWith("doRight(input)") ) fun doWrong(input: String) {} 这将生成一个lint q

我能够使用快速修复程序编写lint警告/错误,以更改IDE中的某些代码

我还知道我可以用@Deprecated标记对Kotlin函数进行标记,如下所示:

@Deprecated(
    level = DeprecationLevel.ERROR,
    message = "This is wrong",
    replaceWith = ReplaceWith("doRight(input)")
)
fun doWrong(input: String) {}
这将生成一个lint quickfix(LintFix)来替换该函数。但它也会生成一个lint quickfix来替换整个项目中的函数,如下所示:

@Deprecated(
    level = DeprecationLevel.ERROR,
    message = "This is wrong",
    replaceWith = ReplaceWith("doRight(input)")
)
fun doWrong(input: String) {}

我如何编写一个自定义修复程序,不仅将快速修复程序应用于当前警告,而且应用于项目中所有适用的警告