Android Lint is a new tool provided in ADT 16 and it is a code scanning tool similar to the FindBugs tool. However, he mainly detects the following aspects:
- Layout performance
- Internationalization issues (hard coding)
- Icon problem (duplicate icon, wrong size)
- Usability issues (such as input for non-specified text fields)
- Androidmanifest File Errors
- Resources not used in pictures, etc.
- Inconsistent array size
- Use of APIs higher than MINSDK
Can directly detect a project, the use is very simple, configure the SDK path, the command line directly input: Lint project name
There will be test results, such as:
He has integrated in eclipse and we can view it directly in the menu Window->show view->other->lint warings.
Set the check level in the menu window->preference-> "Lint eerro checking".
About the lint inspection rules, here is a good summary of the article: some Chinese and English original
Android Lint Tools