15
Nov
image

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 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
  • 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.

image image image

Read about Android Lint over at the Tools site.

Artem Russakovskii
Artem is a die-hard Android fan, passionate tech blogger, obsessive-compulsive editor, bug hunting programmer, and the founder of Android Police.
Most of the time, you will find Artem either hacking away at code or thinking of the next 15 blog posts.

  • http://facebook.com/smsmycarandme Force

    Wow, that sounds really, really good!

  • LayZee

    Another welcome addition to the ADT :)