aboutsummaryrefslogtreecommitdiff
path: root/build/android/docs/lint.md
diff options
context:
space:
mode:
authorandroid-autoroll <android-autoroll@skia-public.iam.gserviceaccount.com>2024-04-19 10:42:31 +0000
committerandroid-autoroll <android-autoroll@skia-public.iam.gserviceaccount.com>2024-04-19 10:42:31 +0000
commitc4db00fa37fd5404d04d7245600e0b3849bd327d (patch)
treea7e7b6fbddfe03e731beaf5c3db2d1e9750fc8d8 /build/android/docs/lint.md
parent36b725a37bc92320f1b5c20e77bf28cc89f9e14f (diff)
parent602a6a9a532fac607e3c36824a8998e270d406a4 (diff)
downloadangle-c4db00fa37fd5404d04d7245600e0b3849bd327d.tar.gz
Roll ANGLE from 51c580031adc to 602a6a9a532f (12 revisions)
https://chromium.googlesource.com/angle/angle.git/+log/51c580031adc..602a6a9a532f Please enable autosubmit on changes if possible when approving them. If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/angle-android-autoroll Please CC angle-team@google.com,rmistry@google.com,syoussefi@google.com on the revert to ensure that a human is aware of the problem. To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md Test: Presubmit checks will test this change. Exempt-From-Owner-Approval: The autoroll bot does not require owner approval. Bug: b/223456677 Bug: b/315353258 Bug: b/335295728 Bug: b/335496851 Bug: b/335541479 Change-Id: Ifa31e37877cf9d56784dc31ca1096b9307474b85
Diffstat (limited to 'build/android/docs/lint.md')
-rw-r--r--build/android/docs/lint.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/build/android/docs/lint.md b/build/android/docs/lint.md
index 04e42f7e1a..d0c583b365 100644
--- a/build/android/docs/lint.md
+++ b/build/android/docs/lint.md
@@ -14,10 +14,26 @@ This is a [list of checks] that you might encounter.
## How Chromium uses lint
Chromium only runs lint on apk or bundle targets that explicitly set
-`enable_lint = true`. Some example targets that have this set are:
+`enable_lint = true`. You can run lint by compiling the apk or bundle target
+with ninja; once the code finishes compiling, ninja will automatically run lint
+on the code.
+
+Some example targets that have lint enabled are:
- `//chrome/android:monochrome_public_bundle`
- `//android_webview/support_library/boundary_interfaces:boundary_interface_example_apk`
+ - Other targets with `enable_lint` enabled: https://source.chromium.org/search?q=lang:gn%20enable_lint%5C%20%3D%5C%20true&ss=chromium
+
+If you think lint is not running and already verified your GN
+target has `enable_lint = true`, then you can double check that
+`android_static_analysis` is set to `"on"` (this is the default value):
+
+```shell
+$ gn args out/Default --list=android_static_analysis
+android_static_analysis
+ Current value (from the default) = "on"
+ From //build/config/android/config.gni:85
+```
## My code has a lint error