Skip to content

Instantly share code, notes, and snippets.

@martinbonnin
Last active October 17, 2019 14:57
Show Gist options
  • Save martinbonnin/5530657cda9389cb04a5cf1020778048 to your computer and use it in GitHub Desktop.
Save martinbonnin/5530657cda9389cb04a5cf1020778048 to your computer and use it in GitHub Desktop.
<lint>
<issue id="UnusedAttribute" severity="warning">
<!-- Ignore the specified issue if the location matched this path -->
<ignore path="**/AndroidManifest.xml"/>
<!-- Ignore the specified issue if the message or the location matches the regex -->
<ignore regexp="networkSecurityConfig"/>
<!-- path takes precedence over regexp so it's no use adding both -->
<!--<ignore path="**/AndroidManifest.xml" regexp="networkSecurityConfig"/>-->
</issue>
<!-- You can also specify a list of ids -->
<issue id="UnusedAttribute, MissingTranslation" severity="error"/>
<!-- Nodes overrides the previous ones. UnusedAttribute will become ignored after this -->
<issue id="UnusedAttribute, MissingTranslation" severity="ignore"/>
<!-- "all" is a special id that will be used as a fallback for ids that are not defined elsewhere in the
XML. Putting it last will not overwrite the issues above. Here, we mark any unspecified issue as fatal -->
<issue id="all" severity="fatal"/>
<!-- Any number of additional issue nodes -->
<issue ...
</lint>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment