could someone tell me a way to avoid executing "lint" each time I run in gradle check?
I've defined in build.gradle
lintOptions { quiet true }
However, it keeps doing this task. The problem is that it takes ages each time I have to do a check.
Run the lint tool on your module by right-clicking on your module folder or file in the Project View and selecting Analyze > Inspect Code. This displays the lint inspection results with a list of issues that lint detected in your module.
gradle build -x lint
Source: Gradle User Guide : Excluding Tasks
You can skip it using adding -x lint
when you run the check
task:
./gradlew check -x lint
If you want to skip it permanently you can add this to your build.gradle
before apply plugin: 'com.android.application'
:
tasks.whenTaskAdded { task -> if (task.name.equals("lint")) { task.enabled = false } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With