Android lint tool

Android lint is inThe new tool provided by ADT 16 is a code scanning tool that can help us identify problems with code structure, including:

1) Layout performance (formerly the layoutopt tool, which can solve useless layout, too much nesting, and too much layout)

2) Resources are not used

3) Inconsistent array size

4) Internationalization issues (hard-coded)

5) Icon problem (duplicate icon, wrong size)

6) Usability issues (such as input types that do not specify text fields)

7) Error in manifest file


Lint is a command tool, it has been perfectly integrated into Eclipse, we can use it conveniently.

The use of lint: the tick button in the upper left corner of Eclipse or select the project -> right click -> Android Tools,

Result:








Intelligent Recommendation

Android Lint (official code optimization tool)

Eclipse's ADT plugin was updated to the latest 16.0 and found a red checkmark icon in the Eclipse function bar, as shown: After a bit of practical use, I found this tool to be too powerful. It will pr...

Android custom Lint incremental code checking tool

background Lint is a static code checking tool from Google that scans for potential problems in the code and prompts developers. And in addition to the hundreds of Lint rules natively provided by Andr...

64. Lint tool for Android performance optimization

correctness (Imperfect coding, such as hard coding, using outdated API, etc.) security (insecure coding, such as allowing JavaScriptInterface in WebView, etc.) performance (codes that have an impact o...

android Lint

Android provides us with a great tool for checking when the program conforms to the specification (various warnings).   Instructions:Right click on your project -> Android Tools -> Run Lint...

Android static code detection tool CheckStyle Lint FindBugs Pmd comparison

Android static code detection tool CheckStyle Lint FindBugs Pmd comparison Some URLs in the text may require ladders CheckStyle JavaStatic code detection tool, mainly used for code coding standard det...

More Recommendation

Code optimization ③-Android Studio comes with a code scanning tool Lint

Foreword The AlibabaIDE plug-in and the Jenkins + SonarQube two ways to review and write code specifications were introduced earlier. Today we introduce the code scanning tool that comes with AndroidS...

Android custom Lint implements static code scanning tool

Article Directory About static code scanning tools Simple use of Lint 1. Combination of Lint and IDE Two, the combined use of Lint and gradle commands The specific location is as follows: The generate...

A brief record of the content that needs attention prompted by the Android Studio lint tool

Android lint part: Duplicated icons under different names Different names for the same icon FrameLayout can be replaced with tag FrameLayout can be replaced with merge tag Handler reference leaks Hand...

Android r system compiles LINT tool check problem record

Android R has a new inspection method for the modification of the system API. For code static checks, it becomes more stringent. The types of code or parameters must be added to @nonnull. Otherwise, c...

Android development code detection tool Lint and Alibaba coding specification scan (code detection tool)

We write a lot of code is not standardized, how to detect? In fact, the AS comes with a detection tool called lint as shown below:   Another one is Alibaba's code detection and AS comes with the ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top