Mobile/Fennec/Android/Static analysis: Difference between revisions

From MozillaWiki
< Mobile‎ | Fennec‎ | Android
Jump to navigation Jump to search
Line 23: Line 23:


== checkstyle ==
== checkstyle ==
Checks code style
./mach gradle app:checkstyle
* '''example checks?''' [http://checkstyle.sourceforge.net/google_style.html Google's style guide]
* '''in automation?''' [https://bugzilla.mozilla.org/show_bug.cgi?id=1259795 In progress]
* '''config?''' [http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/checkstyle.xml mobile/android/app/checkstyle.xml]
* '''open issues?''' Issues we care about are blocking the meta.
* '''meta bug?''' [https://bugzilla.mozilla.org/show_bug.cgi?id=1170283 meta bug]
== eslint ==
== eslint ==

Revision as of 17:54, 25 March 2016

Android Lint

Catches various errors & optimizations specifically related to Android code and resources

./mach gradle app:lint

Notes:

Facebook Infer

Currently detects NullPointerExceptions and resource leaks in Android applications.

It's currently unknown how to run locally.

Notes:

checkstyle

Checks code style

./mach gradle app:checkstyle

eslint