diff options
author | Tor Norbye <tnorbye@google.com> | 2012-02-06 14:32:44 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-02-06 18:01:07 -0800 |
commit | 69067f399231dc28f4ff0aa02b60153ffd2d5831 (patch) | |
tree | fcb26e8f844d2819a6819a4e1741ea5f6e111533 /assetstudio/tests | |
parent | 858b17c8539f9d9cb7202e6fa7e87bda35ca021c (diff) | |
download | sdk-69067f399231dc28f4ff0aa02b60153ffd2d5831.zip sdk-69067f399231dc28f4ff0aa02b60153ffd2d5831.tar.gz sdk-69067f399231dc28f4ff0aa02b60153ffd2d5831.tar.bz2 |
Add support for suppressing lint via XML attributes
This changeset adds support for suppressing in XML files:
(1) Lint will ignore errors found in attributes and elements if the
element (or any surrounding parent elements) specifies a
tools:ignore="id-list" attribute where the id-list matches the id
of the reported issue (or "all"). The "tools" prefix can be any
prefix bound to the namespace "http://schemas.android.com/tools"
(2) There's a new quickfix shown for XML lint warnings which offers to
add a lint suppress attribute for a given lint warning (setting
the id to the id of the warning, and adding the tools namespace
binding if necessary).
(3) The XML formatter now handles namespaces a bit better: after the
preferred attributes (id, name, style, layout params, etc) have
been handled, attributes are sorted by namespace prefix before
they are sorted by local name -- which effectively will sort any
new tools:ignore attributes to the end.
Change-Id: Id7474cde5665d9bd29bdd4e0d0cc89ed4d422aea
Diffstat (limited to 'assetstudio/tests')
0 files changed, 0 insertions, 0 deletions