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

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


* '''example checks?''' [https://sites.google.com/a/android.com/tools/tips/lint-checks `lint --show`]
* '''example checks?''' [https://sites.google.com/a/android.com/tools/tips/lint-checks `lint --show`]
* '''in automation?''' TBPL tier 2 "unit" job
* '''in automation?''' Treeherder tier 2 "Unit" job
* '''config?''' [http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/lint.xml mobile/android/app/lint.xml]
* '''config?''' [http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/lint.xml mobile/android/app/lint.xml]
* '''open issues?''' Run locally for a complete list.
* '''open issues?''' Run locally for a complete list.

Revision as of 18:11, 25 March 2016

Android Lint

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

./mach gradle app:lint

Facebook Infer

Currently detects NullPointerExceptions and resource leaks in Android applications.

It's currently unknown how to run locally.

checkstyle

Checks code style

./mach gradle app:checkstyle

Coverity

eslint

Checks for Javascript errors (e.g. syntax errors, almost like a compiled language! :D)

./mach eslint --setup  # run once, or if the command breaks for some reason
./mach eslint mobile/android