summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2023-11-13 22:34:36 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-11-13 22:34:36 +0000
commitbc9d6797ec8942a229097eb1503cc96f39f81ec4 (patch)
tree7e42a7c897509e35f3e8e91d4fe8f37359c1f767
parent3065779a388c7dd5f29977e2024a17f1aa7f0143 (diff)
parent21a709f4f3182aee9be1469af45c16192cb50868 (diff)
Merge "lint: update documentation on how to update the baseline" into main
-rw-r--r--tools/lint/README.md13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/lint/README.md b/tools/lint/README.md
index b235ad60c799..ff8e44229189 100644
--- a/tools/lint/README.md
+++ b/tools/lint/README.md
@@ -103,10 +103,15 @@ out/soong/.intermediates/frameworks/base/services/autofill/services.autofill/and
As noted above, this baseline file contains warnings too, which might be undesirable. For example,
CI tools might surface these warnings in code reviews. In order to create this file without
-warnings, we need to pass another flag to lint: `--nowarn`. The easiest way to do this is to
-locally change the soong code in
-[lint.go](http://cs/aosp-master/build/soong/java/lint.go;l=451;rcl=2e778d5bc4a8d1d77b4f4a3029a4a254ad57db75)
-adding `cmd.Flag("--nowarn")` and running lint again.
+warnings, we need to pass another flag to lint: `--nowarn`. One option is to add the flag to your
+Android.bp file and then run lint again:
+
+```
+ lint: {
+ extra_check_modules: ["AndroidFrameworkLintChecker"],
+ flags: ["--nowarn"],
+ }
+```
# Documentation