Skip to content

Instantly share code, notes, and snippets.

@Bringoff
Created October 5, 2017 12:26
Show Gist options
  • Select an option

  • Save Bringoff/4450a7167d1d5635b252debc4f4e7835 to your computer and use it in GitHub Desktop.

Select an option

Save Bringoff/4450a7167d1d5635b252debc4f4e7835 to your computer and use it in GitHub Desktop.
Lint gradle example config
...
apply from: 'lint-checks.gradle'
...
android {
...
lintOptions {
textReport true
abortOnError true
warningsAsErrors true
check lintchecks
}
...
}
ext.lintchecks = [
'StringFormatInvalid',
'StringFormatMatches',
'StringFormatCount',
'DuplicateDefinition',
'ExtraTranslation',
'InvalidId',
'UnknownId',
'CutPasteId',
'SetTextI18n',
'IllegalResourceRef',
'NotInterpolated',
'ResourceType',
'PropertyEscape',
'Range',
'OnClick',
'MissingSuperCall',
'WrongViewCast',
'NamespaceTypo',
'PendingBindings',
'Proguard',
'ResourceCycle',
'WrongFolder',
'ResourceAsColor',
] as String[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment