Skip to content

Instantly share code, notes, and snippets.

@martinbonnin
Created October 17, 2019 15:05
Show Gist options
  • Save martinbonnin/e855ea930af2dd2a0cb7530665ce193b to your computer and use it in GitHub Desktop.
Save martinbonnin/e855ea930af2dd2a0cb7530665ce193b to your computer and use it in GitHub Desktop.
tasks.withType<LintBaseTask>().configureEach {
// doFirst is required else we get a Null Pointer Exception on lintOption
doFirst {
// This will override the lintOptions from the android extension
lintOptions.run {
if (name.toLowerCase().contains("debug")) {
// Do your configuration here
// isAbortOnError = false
// etc...
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment