【文件属性】:
文件名称:Intervention:基于注释的Android皮棉支票生成
文件大小:216KB
文件格式:ZIP
更新时间:2021-04-24 07:03:59
android kotlin lint annotation linter
干涉
基于注释的Android皮棉支票生成
生成自定义的Android棉绒检查,并让棉绒警告您有关使用Kotlin扩展或您自己的编码约定处理的代码。
这有什么用?
我们创建并注释以下简单的扩展功能:
@Intervene(name = " ContentView " , warnAgainst = " setContentView " )
fun Activity. layout (@LayoutRes layoutRes : Int ) {
this .setContentView(layoutRes)
}
@Intervene(name = " ToastIntervention " , warnAgainst = " Toast.makeText " )
fun Activity. toast ( message : String , length : Int = Toa
【文件预览】:
Intervention-develop
----intervention()
--------.gitignore(7B)
--------build.gradle(1KB)
--------src()
----.gitignore(87B)
----gradle()
--------wrapper()
----README.md(6KB)
----build.gradle(2KB)
----appinterventions()
--------.gitignore(7B)
--------build.gradle(612B)
--------src()
----gradlew.bat(2KB)
----gradlew(5KB)
----LICENSE(11KB)
----app()
--------.gitignore(7B)
--------build.gradle(1KB)
--------proguard-rules.pro(751B)
--------src()
----gradle.properties(817B)
----interventioncompiler()
--------.gitignore(7B)
--------build.gradle(1KB)
--------src()
----report-printscreen.jpg(76KB)
----settings.gradle(78B)