You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 36ed224bac
Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
1 year ago
..
README Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
baseline.xml Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
lint.xml Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
run_lint.sh Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago
update_baseline.sh Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a) 1 year ago

README

This directory contains configuration files for lint, which is run
in as an upload hook for repo upload.

lint.xml contains checks that are turned on or off, or whitelisted /
blacklisted for particular directories, if they are different from
the default.

baseline.xml contains the list of existing "grandfathered" lint
errors in the codebase. It is generated using ./tools/lint/update_baseline.sh

When you hit a lint error that should not be triggered, there are 3
possible resolutions:
1. Use tools:ignore or @SuppressLint annotation. This is preferred
   for cases where the lint violation is intended, so that reviewers
   can review whether the suppression is appropriate.
2. Use tools/lint.xml to ignore a lint check which we don't care
   about for any file, or checks that are not actionable by the
   CL author (e.g. translation issues)
3. If there are lint errors that should be fixed, but cannot be done
   immediately for some reason, the issue should be added to
   baseline.xml.


References
- https://developer.android.com/studio/write/lint.html
- http://tools.android.com/tips/lint-checks