Skip to content

Instantly share code, notes, and snippets.

@andreas-kkday
Created February 15, 2022 02:27
Show Gist options
  • Save andreas-kkday/8b6ab9c1a62b5d3b435ef063ebd0a0c5 to your computer and use it in GitHub Desktop.
Save andreas-kkday/8b6ab9c1a62b5d3b435ef063ebd0a0c5 to your computer and use it in GitHub Desktop.
lint parameter from gradle command line
android {
lintOptions {
disable 'InvalidPackage', 'IconMissingDensityFolder', 'ResourceType'
// Disable this check temporally
enable 'ValidFragment'
abortOnError project.hasProperty("abortOnLintError") ? project.getProperty("abortOnLintError").toBoolean() : true
}
}
./gradlew lint :app:lintDevelopDebug -PabortOnLintError=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment