summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 9fbf29d0df..7fbd19909a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -75,6 +75,27 @@ cc_defaults {
cpp_std: "c++20",
}
+// List of tidy checks that are enabled for cc targets.
+// Note that the goal is not to enable all checks, many of them will
+// appear as noise especially in the modernize-* range.
+bluetooth_tidy_checks = [
+ "-*",
+ "misc-*",
+
+ // This check implements detection of local variables which could be declared
+ // as const but are not.
+ "-misc-const-correctness",
+]
+
+// This default tidy checks that will be run against all the cc targets
+// developed by the Bluetooth team.
+cc_defaults {
+ name: "bluetooth_tidy",
+ tidy: true,
+ tidy_checks: bluetooth_tidy_checks,
+ tidy_checks_as_errors: bluetooth_tidy_checks,
+}
+
java_defaults {
name: "bluetooth_errorprone_rules",
errorprone: {