Kotlin and android lint checks

时间秒杀一切 提交于 2019-12-03 10:32:10

The Kotlin team is working on supporting Android Lint checks for Kotlin code. You can watch this issue to keep track of the progress.

In the release of Android Studio 3.2, Lint can able to check.

Follow below step to enable lint check for Kotlin:

  • To enable these checks, go to File > Preferences > Editor > Inspections and check the rules that you want to enable under Kotlin Interoperability, as shown below.

  • You can then run the checks by selecting Analyze > Inspect Code from the main menu.

Check more info at Lint checks for Java/Kotlin interoperability

I hope it helps us.

There is a Kotlin linter that has a few different ways of integrating it with different build systems.

https://github.com/shyiko/ktlint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!