Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code analysis tools for Android

Is there any static code analysis tools for Android that would pick up simple things like NullPointerExceptions from trying to access an object that might be null (without checking for it first)...

Tools like resharper on C# projects do this quite well, so I'm presuming there is similar tools for Android's Java...

like image 487
Mike Hudgell Avatar asked Jun 30 '11 08:06

Mike Hudgell


People also ask

What is static code analysis in Android?

Static analysis (or static code analysis) is an analysis run on the source code, against some set rules, even before the program runs (usually even before the unit tests). This is a kind of debugging that is done without even running the program and this is usually the first step taken towards code-analysis.

What is a static code analysis tool?

Static Code Analysis commonly refers to the running of Static Code Analysis tools that attempt to highlight possible vulnerabilities within 'static' (non-running) source code by using techniques such as Taint Analysis and Data Flow Analysis.

How do you Analyse source code?

Source code analysis is the automated testing of source code for the purpose of debugging a computer program or application before it is distributed or sold. Source code consists of statements created with a text editor or visual programming tool and then saved in a file.

What are code quality tools?

Code quality tools are software development and testing solutions that automate the process of identifying code defects. These tools can be applied within the various phases of your software development.


1 Answers

Since ADT 16 there is build-int Android Lint tool for static code analysis. http://tools.android.com/tips/lint/

like image 154
fones Avatar answered Oct 22 '22 17:10

fones