Skip to content

Instantly share code, notes, and snippets.

@martinbonnin
Last active October 17, 2019 14:21
Show Gist options
  • Save martinbonnin/71c6b6f979635d34bb9c856a8c4132c4 to your computer and use it in GitHub Desktop.
Save martinbonnin/71c6b6f979635d34bb9c856a8c4132c4 to your computer and use it in GitHub Desktop.
lintOptions {
// You can put severity configuration inside an XML file.
// Order inside the XML file is important.
setLintConfig(file("lint.xml"))
// Change the severity of the passed issueIds.
// Order is important.
// This overrides the XML configuration.
fatal("UnusedResources", "MissingTranslation")
error("UnusedResources", "MissingTranslation")
warning("UnusedResources", "MissingTranslation")
informational("UnusedResources", "MissingTranslation")
ignore("UnusedResources", "MissingTranslation")
// turns the severity of all "warning" issues into "ignore"
// This is applied last and overrides the XML and methods above.
isIgnoreWarnings = true
// turns the severity of all "warning" issues into "error"
// This is applied last andoverrides the XML and methods above.
isWarningsAsErrors = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment