summaryrefslogtreecommitdiffstats
path: root/tools/apilint
Commit message (Collapse)AuthorAgeFilesLines
* More API lint checks.Jeff Sharkey2014-08-291-5/+71
| | | | | | | | | | | When offering a helper Service, etc, all platform provided methods should be marked final. Otherwise, if available for developer to override, they should follow onFoo() style naming. Catch anyone returning concrete collections types, and look for overlapping flags. Change-Id: I29d95f3dff78a4da968a46f10be89eada509648c
* Teach API lint about package layering!Jeff Sharkey2014-08-281-1/+53
| | | | | | | Now it can identify layering violations, like when something deep in android.os depends on android.app. Change-Id: I94606c642195b3ed7558ff6979ed4a181cd85fa2
* Lint tool for current.txt.Jeff Sharkey2014-08-281-0/+488
Detects common public API mistakes, making it easy to quickly scan across all changes in a new API level. Builds in-memory representation of the current API, then runs various detectors over the classes. It collects failures, and can ignore known failures from a previous API level. Example usage: $ python frameworks/base/tools/apilint/apilint.py \ frameworks/base/api/current.txt \ prebuilts/sdk/api/21.txt Change-Id: Ie1f88894baf9f79e4b11e78c47f848ea5e25fc25