Closed
Bug 716748
Opened 13 years ago
Closed 10 years ago
Investigate Google's Android Lint tool for scanning project resources for potential bugs
Categories
(Firefox for Android Graveyard :: General, defect, P4)
Tracking
(fennec+)
RESOLVED
DUPLICATE
of bug 1170283
Tracking | Status | |
---|---|---|
fennec | + | --- |
People
(Reporter: cpeterson, Unassigned, Mentored)
References
Details
(Whiteboard: [lang=java])
Attachments
(1 file, 1 obsolete file)
107.94 KB,
text/plain
|
Details |
Android Lint is an SDK tool which scans Android project sources for potential bugs. It is available both as a command line tool, as well as integrated with Eclipse. Here are some examples of the types of errors that it looks for:
* Missing translations (and unused translations)
* Layout performance problems (all the issues the old layoutopt tool used to find, and more)
* Unused resources
* Inconsistent array sizes (when arrays are defined in multiple configurations)
* Accessibility and internationalization problems (hardcoded strings, missing contentDescription, etc)
* Icon problems (like missing densities, duplicate icons, wrong sizes, etc)
* Usability problems (like not specifying an input type on a text field)
* Manifest errors
Fennec does not have a typical Android project structure, but I think we can lint the generated files in OBJDIR/dist/fennec or OBJDIR/mobile/android.
http://tools.android.com/tips/lint
Updated•13 years ago
|
Assignee: nobody → cpeterson
tracking-fennec: --- → +
Priority: -- → P4
Reporter | ||
Updated•13 years ago
|
Assignee: cpeterson → nobody
Updated•13 years ago
|
Assignee: nobody → cpeterson
Reporter | ||
Updated•12 years ago
|
Assignee: cpeterson → nobody
Comment 1•12 years ago
|
||
Running lint on inbound, I get 226 errors and 627 warnings. See attached log.
Reporter | ||
Comment 2•12 years ago
|
||
Can you filter the "Call requires API level X (current min is Y)" errors? Calling APIs above our minimum API level is a feature, not a bug. :)
Comment 3•12 years ago
|
||
(In reply to Chris Peterson (:cpeterson) from comment #2)
> Can you filter the "Call requires API level X (current min is Y)" errors?
> Calling APIs above our minimum API level is a feature, not a bug. :)
Yeah, though I think the proper way to get rid of these is to annotate code with @TargetApi: http://developer.android.com/reference/android/annotation/TargetApi.html.
Calling lint with --disable NewApi hides most of the errors; log attached.
Attachment #705648 -
Attachment is obsolete: true
Updated•11 years ago
|
Whiteboard: [mentor=mcomella][lang=java]
Noting that any implementation here will likely get wrapped with the work in bug 939350, which is a python lint API that will potentially be integrated with mach and/or hg.
See Also: → 972976
Assignee | ||
Updated•11 years ago
|
Mentor: michael.l.comella
Whiteboard: [mentor=mcomella][lang=java] → [lang=java]
Comment 5•11 years ago
|
||
Note that this is easy to do ad hoc in Eclipse.
Mentor: chriskitching, nalexander
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•