I would like to be able to run the lint task when I\'m building projects with the android studio to ensure the lint rules are being followed.
I have tried using task
To runt lint and analyze your project, simply select Analyze > Inspect Code
.
You should get a nice window with all issues.
Also check Run lint in Android Studio for more information.
I did a little more research, try adding this to your build.gradle
.
lintOptions {
abortOnError true
}
There are many options that you can apply to the build.gradle