diff options
author | Tor Norbye <tnorbye@google.com> | 2011-12-02 08:18:18 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2011-12-05 08:55:01 -0800 |
commit | 3ce45b249f898697ae82e8c6dd045966227f3438 (patch) | |
tree | 0f93dcdf3fb835a6a0afcb5faae5bf25ec53367f /eclipse/dictionary.txt | |
parent | 3f69598ca49f1672c6a1fd311fb4e3bac245512a (diff) | |
download | sdk-3ce45b249f898697ae82e8c6dd045966227f3438.zip sdk-3ce45b249f898697ae82e8c6dd045966227f3438.tar.gz sdk-3ce45b249f898697ae82e8c6dd045966227f3438.tar.bz2 |
Lint infrastructure improvements
This changeset fixes a bunch of issues in the infrastructure:
(1) It cleans up the Context class quite a bit. It had some hardcoded
XML stuff in it, which is now in a separate XmlContext class (and
there will be a JavaContext class in the Java support CL).
It also hides a bunch of public fields, cleans up some unused
stuff, and introduces a couple of wrapper methods to make detector
code cleaner; in particular, rather than calling
context.client.report(context, ...
you can now just call
context.report(...
and similarly there are wrappers for logging and checking for
disabled issues.
(2) The IParser interface is renamed to IDomParser since in the next
CL there will also be an IJavaParser. Some other related cleanup.
(3) There is now a "Location.Handle" interface. This allows detectors
to create light-weight location holders, and later on call
handle.resolve() to create a full-fledged Location. This is useful
when detectors don't yet know whether they'll need a location for
a node, but want to store it for later in case they do. As an
example, the unused resource detector creates location handles for
declaration and only resolves full locations for those that are
found to be unused.
Locations can now carry custom messages. For example, for a
duplicate id error, the secondary location now contains a
"original declaration here" message. And the CLI and HTML reports
now include alternate locations in the output.
Some other location cleanup too; using factory methods to make the
code cleaner, some default implementations that can be shared,
etc.
(4) There's a new SDK info class intended to provide SDK information
from a tool client (such as resource resolution). It currently
just contains parent-view information, used for the
ObsoleteLayoutParams detector and an upcoming CL for a
ViewTypeDetector.
(5) The Detector class now provides dummy implementations for the
inner-interfaces, so we no longer need the adapter classes. This
makes it easy to implement the XmlScanner or JavaScanner
interfaces without needing to also stub out a bunch of methods.
Change-Id: I4b3aaabe51febb25b000f9086703653bea6cf7c9
Diffstat (limited to 'eclipse/dictionary.txt')
-rw-r--r-- | eclipse/dictionary.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eclipse/dictionary.txt b/eclipse/dictionary.txt index 9b0fc68..068590c 100644 --- a/eclipse/dictionary.txt +++ b/eclipse/dictionary.txt @@ -159,6 +159,7 @@ mdpi metadata min mipmap +monospace monte ms msg |