Kotlin on Code Quality Tools
summary
Compares Android Lint, Detekt and ktlint for Kotlin: Android Lint and ktlint run on formatting and can auto-fix issues (ktlint -F), Detekt provides static analysis and produces XML/HTML reports for CI; all expose standalone binaries and Gradle tasks. Demonstrates adding Detekt/ktlint as Gradle configurations, writing a custom rule that flags internal imports, and unit testing it — rule implementation in about 12 lines and test in about 10. Notes SonarQube integrates Detekt.
AI-written summary · about
chapters (8)
- 0:00Motivation for code tools
- 2:37Tool overview and comparison
- 4:37Using Android Lint
- 7:29Using Detekt
- 10:13Extending Detekt
- 14:09Using Ktlint
- 16:07Extending Ktlint
- 18:38Resources and Q&A
related talks
37mKotlin on Code Quality Tools
41mKotlin Static Analysis with Android Lint
42mSafe(r) Kotlin Code - Static Analysis Tools for Kotlin
37mStatic Code Analysis For Kotlin
24mImprove your code with Lint checks for Kotlin
41mDetekt - State of the Union
20mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
44mLint. What, Why, How?
