From b7339b1a849896f16b489edd847cd060bfdaffb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= Date: Mon, 31 Jan 2022 14:57:45 +1100 Subject: [PATCH] Document ANDROID_LINT_CHECK Test: n/a Change-Id: Ief902e6ae28e4ebd67aba52d6b093a0d22996306 --- tools/lint/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/lint/README.md b/tools/lint/README.md index 2b6d65b318e5b..b534b62cb3957 100644 --- a/tools/lint/README.md +++ b/tools/lint/README.md @@ -40,6 +40,9 @@ m out/soong/.intermediates/frameworks/base/services/autofill/services.autofill/a - If you want to build lint reports for more than 1 module and they include a common module in their `defaults` field, e.g. `platform_service_defaults`, you can add the `lint` property to that common module instead of adding it in every module. +- If you want to run a single lint type, use the `ANDROID_LINT_CHECK` + environment variable with the id of the lint. For example: + `ANDROID_LINT_CHECK=UnusedTokenOfOriginalCallingIdentity m out/[...]/lint-report.html` ## Create or update a baseline