tree: d5b6e093a7b705471681b88f82e31b04c3761f18 [path history] [tgz]
  1. checks/
  2. Android.bp
  3. OWNERS
  4. README.md
tools/lint/README.md

Bluetooth Lint Checks for AOSP

Custom Android Lint checks are written here to be executed against Bluetooth Java and Kotlin source code. These will appear as part of errorprone builds, which are notably ran as part of pre/post-submit testing of Bluetooth code.

How to run Bluetooth lint checks against the code base

While lint checks should be automatically run by Gerrit, you may want to run it manually on the code base.

Step 1: Build the lint report:

m Bluetooth-lint

Step 2: Find your lint output:

croot;
find out/soong/.intermediates/packages/modules/Bluetooth/ -type f -name "*lint-report*" -print;

Or:

aninja -t query Bluetooth-lint

Step 3: Identify the lint report you want to view the results of, typically in the following format:

out/soong/.intermediates/packages/modules/Bluetooth/android/app/Bluetooth/android_common/<run-identifier>/lint/lint-report.html

Step 4: Open the file in your favorite web browser.

How to run Bluetooth lint unit tests

Unit tests can be ran with the following command:

atest BluetoothLintCheckerTest --host

Documentation