android-custom-lint-rules
android-custom-lint-rules copied to clipboard
This sample demonstrates how to create a custom lint checks and corresponding lint tests
Hello. I tried to create my custom line rule. And I have a question while writing it. In [Creating the issue](https://googlesamples.github.io/android-custom-lint-rules/api-guide.html#writingalintcheck:basics/creatinganissue) section, sample code shows that `JvmField` annotation is using...
I try to work for 2 week to make custom lint rules adapt AGP from 4.x to 7.x,but nothing got please help me solve this problem thanks
**Code: Modified avoid AvoidDateDetector.kt** ```kotlin override fun getApplicableConstructorTypes(): List = listOf("com.google.gson.Gson") override fun visitConstructor( context: JavaContext, node: UCallExpression, constructor: PsiMethod, ) { context.report( ISSUE, node, context.getLocation(node), "Don't use `Gson`;", )...
 Hi, Currently, I’ve `allWarningsAsErrors` set to true in my project, but for some reason the Convert to 'data object' warning is not failing the build (unlike other warnings). I...