To help Android developers automate some things and catch certain errors early on, the Android Tools team is pushing ahead with a new dev tool called Android Lint. Android Lint will be available in the next release of ADT (16) and Tools (r16).
If you're not familiar with the "lint" paradigm, a lint tool generally helps you validate your code using a certain set of rules in order to avoid common pitfalls. For example, PHP has PHPLint, JSON has jsonlint and so on.
As for Android Lint, its features at launch will include the following:
- Missing translations (and unused translations)
- Layout performance problems (all the issues the old
layoutopttool 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
- and many more
You can find all the current checks Android Lint performs here.
The tool will come standalone but will also be integrated into Eclipse for easy access, which is excellent news for us, developers.
Read about Android Lint over at the Tools site.