Custom lint checks written here are going to be executed for modules that opt in to those (e.g. any services.XXX
module) and results will be automatically reported on CLs on gerrit.
checks/src/main/java/com/google/android/lint
.AndroidFrameworkIssueRegistry
's issues
field.checks/test/java/com/google/android/lint
.AndroidFrameworkLintChecker
.lint
attribute to the module definition, e.g. services.autofill
:java_library_static { name: "services.autofill", ... lint: { extra_check_modules: ["AndroidFrameworkLintChecker"], }, }
m out/soong/.intermediates/frameworks/base/services/autofill/services.autofill/android_common/lint/lint-report.html
(Lint report can be found in the same path, i.e. out/../lint-report.html
)
Notes:
m services.autofill
will not build the lint report.defaults
field, e.g. platform_service_defaults
, you can add the lint
property to that common module instead of adding it in every module.