Android Lint

February 1, 2018 ยท View on GitHub

Android Lint is a linter and static analysis tool for Android projects which can detect bugs and potential issues in code, resources and configuration files.

Be aware that Lint just supports Kotlin since version 3.1.0 of the Android Gradle Plugin.

Configure Android Lint

Lint is configured through the lintOptions closure. It supports all official properties except abortOnError, htmlReport and xmlReport. These are overridden so that Lint won't break the build on its own and always generates reports.