Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e257142 authored by William Escande's avatar William Escande
Browse files

Lint: enforce as error

Now that the baseline is up to date we can enforce some as error to
prevent spreading the disease.

Bug: 289445022
Test: m Bluetooth
Flag: Exempt lint
Change-Id: I13f25b3fa43b9ac1b97b4f67c0cb45b3603f17e3
parent 23a3c648
Loading
Loading
Loading
Loading
+30 −1
Original line number Diff line number Diff line
@@ -293,15 +293,44 @@ android_app {
    javacflags: ["-Aroom.schemaLocation=packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/storage/schemas"],

    lint: {
        // TODO(b/318814235): Add back ObsoleteSdkInt to this list.
        error_checks: [
            "Autofill",
            "DefaultLocale",
            "DuplicateDefinition",
            // "ExportedContentProvider", // TODO: b/289445022 - enable this check
            // "ExportedReceiver", // TODO: b/289445022 - enable this check
            // "ExportedService", // TODO: b/289445022 - enable this check
            "ExtraText",
            "ExtraTranslation",
            "GestureBackNavigation",
            "GuardedLogInvocation",
            "HandlerLeak",
            "InflateParams",
            // "InvalidPermission", // TODO: b/289445022 - enable this check
            "LabelFor",
            "MissingClass",
            // "MissingVersion", // TODO: b/289445022 - enable this check
            "MonochromeLauncherIcon",
            "NewApi",
            "ObsoleteSdkInt",
            // "QueryAllPackagesPermission", // TODO: b/289445022 - enable this check
            "Recycle",
            "RtlHardcoded",
            "RtlSymmetry",
            "ScrollViewSize",
            "SetTextI18n",
            "SimpleDateFormat",
            "StaticFieldLeak",
            "StringFormatCount",
            "StringFormatInvalid",
            "TextFields",
            "TypographyEllipsis",
            "UseSparseArrays",
            "UseValueOf",
            "VectorPath",
            "VisibleForTests",
            "Wakelock",
            "WakelockTimeout",
        ],
        extra_check_modules: ["BluetoothLintChecker"],
        baseline_filename: "lint-baseline.xml",