| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 1 | # Treat LintError as fatal to catch invocation errors | 
 | 2 | --fatal_check LintError | 
| mattgilbride | 69f04a1 | 2023-01-05 17:38:34 +0000 | [diff] [blame] | 3 | # ObsoleteLintCustomCheck is a warning by default, but lint ignores the | 
 | 4 | # checks from the subject jar if this issue is raised. | 
 | 5 | # This should be an error for AOSP. If we create a check, we expect it | 
 | 6 | # to run, otherwise we want an error. | 
 | 7 | --fatal_check ObsoleteLintCustomCheck | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 8 |  | 
| Tor Norbye | b015aec | 2021-07-24 04:07:27 +0000 | [diff] [blame] | 9 | # Checks which do not apply to the platform (implementation | 
 | 10 | # in lint assumes that it's running on app code) | 
 | 11 |  | 
 | 12 | --disable_check AnimatorKeep | 
 | 13 | --disable_check AppBundleLocaleChanges | 
| Cole Faust | 3f64626 | 2022-06-29 14:58:03 -0700 | [diff] [blame] | 14 | --disable_check AppCompatCustomView | 
| Tor Norbye | b015aec | 2021-07-24 04:07:27 +0000 | [diff] [blame] | 15 | --disable_check BlockedPrivateApi | 
 | 16 | --disable_check CustomSplashScreen | 
 | 17 | --disable_check CustomX509TrustManager | 
 | 18 | --disable_check Deprecated | 
 | 19 | --disable_check ExifInterface | 
 | 20 | --disable_check HardwareIds | 
 | 21 | --disable_check InvalidWakeLockTag | 
 | 22 | --disable_check LibraryCustomView | 
 | 23 | --disable_check MissingPermission | 
 | 24 | --disable_check NonConstantResourceId | 
 | 25 | --disable_check OldTargetApi | 
 | 26 | --disable_check Override | 
 | 27 | --disable_check PackageManagerGetSignatures | 
 | 28 | --disable_check PrivateApi | 
 | 29 | --disable_check ProtectedPermissions | 
 | 30 | --disable_check QueryPermissionsNeeded | 
| Cole Faust | 3f64626 | 2022-06-29 14:58:03 -0700 | [diff] [blame] | 31 | --disable_check ReservedSystemPermission | 
| Tor Norbye | b015aec | 2021-07-24 04:07:27 +0000 | [diff] [blame] | 32 | --disable_check ScopedStorage | 
 | 33 | --disable_check ServiceCast | 
 | 34 | --disable_check SoonBlockedPrivateApi | 
 | 35 | --disable_check SuspiciousImport | 
 | 36 | --disable_check UnusedResources | 
 | 37 | --disable_check ViewConstructor | 
| Spandan Das | 397e910 | 2022-04-22 17:28:57 +0000 | [diff] [blame] | 38 | # Disable NewApi checks for the platform since platform is the one that implements | 
 | 39 | # the API. This prevents noisy lint warnings like b/228956345#1 | 
 | 40 | # NewApi checks will continue to be enforced for apex deps since | 
 | 41 | # lint.strict_updatability_linting will be true for those Soong modules | 
 | 42 | --disable_check NewApi | 
| mattgilbride | 9d6cf7e | 2023-01-10 21:05:21 +0000 | [diff] [blame] | 43 | # Disable ChromeOS specific checks | 
 | 44 | --disable_check PermissionImpliesUnsupportedChromeOsHardware | 
 | 45 | # Disable UnsafeImplicitIntentLaunch until it can avoid false positives/crash | 
 | 46 | # TODO(265425607) | 
 | 47 | --disable_check UnsafeImplicitIntentLaunch | 
 | 48 | # InvalidId will give errors on ids defined like android:id="@androidprv:id/contentPanel" | 
 | 49 | --disable_check InvalidId | 
| Tor Norbye | b015aec | 2021-07-24 04:07:27 +0000 | [diff] [blame] | 50 |  | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 51 | # Downgrade existing errors to warnings | 
 | 52 | --warning_check AppCompatResource                  # 55 occurences in 10 modules | 
 | 53 | --warning_check AppLinkUrlError                    # 111 occurences in 53 modules | 
| Cole Faust | 3bce294 | 2022-09-27 15:20:01 -0700 | [diff] [blame] | 54 | --warning_check BinderGetCallingInMainThread | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 55 | --warning_check ByteOrderMark                      # 2 occurences in 2 modules | 
 | 56 | --warning_check DuplicateActivity                  # 3 occurences in 3 modules | 
 | 57 | --warning_check DuplicateDefinition                # 3623 occurences in 48 modules | 
 | 58 | --warning_check DuplicateIds                       # 207 occurences in 22 modules | 
 | 59 | --warning_check EllipsizeMaxLines                  # 12 occurences in 7 modules | 
 | 60 | --warning_check ExtraTranslation                   # 21276 occurences in 27 modules | 
 | 61 | --warning_check FontValidationError                # 4 occurences in 1 modules | 
 | 62 | --warning_check FullBackupContent                  # 16 occurences in 1 modules | 
 | 63 | --warning_check GetContentDescriptionOverride      # 3 occurences in 2 modules | 
 | 64 | --warning_check HalfFloat                          # 31 occurences in 1 modules | 
 | 65 | --warning_check HardcodedDebugMode                 # 99 occurences in 95 modules | 
 | 66 | --warning_check ImpliedQuantity                    # 703 occurences in 27 modules | 
 | 67 | --warning_check ImpliedTouchscreenHardware         # 4 occurences in 4 modules | 
 | 68 | --warning_check IncludeLayoutParam                 # 11 occurences in 6 modules | 
 | 69 | --warning_check Instantiatable                     # 145 occurences in 19 modules | 
 | 70 | --warning_check InvalidPermission                  # 6 occurences in 4 modules | 
 | 71 | --warning_check InvalidUsesTagAttribute            # 6 occurences in 2 modules | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 72 | --warning_check JavascriptInterface                # 3 occurences in 2 modules | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 73 | --warning_check LogTagMismatch                     # 81 occurences in 13 modules | 
 | 74 | --warning_check LongLogTag                         # 249 occurences in 12 modules | 
 | 75 | --warning_check MenuTitle                          # 5 occurences in 4 modules | 
 | 76 | --warning_check MissingClass                       # 537 occurences in 141 modules | 
 | 77 | --warning_check MissingConstraints                 # 39 occurences in 10 modules | 
 | 78 | --warning_check MissingDefaultResource             # 1257 occurences in 40 modules | 
 | 79 | --warning_check MissingIntentFilterForMediaSearch  # 1 occurences in 1 modules | 
 | 80 | --warning_check MissingLeanbackLauncher            # 3 occurences in 3 modules | 
 | 81 | --warning_check MissingLeanbackSupport             # 2 occurences in 2 modules | 
 | 82 | --warning_check MissingOnPlayFromSearch            # 1 occurences in 1 modules | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 83 | --warning_check MissingPrefix                      # 46 occurences in 41 modules | 
 | 84 | --warning_check MissingQuantity                    # 100 occurences in 1 modules | 
 | 85 | --warning_check MissingSuperCall                   # 121 occurences in 36 modules | 
 | 86 | --warning_check MissingTvBanner                    # 3 occurences in 3 modules | 
 | 87 | --warning_check NamespaceTypo                      # 3 occurences in 3 modules | 
 | 88 | --warning_check NetworkSecurityConfig              # 46 occurences in 12 modules | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 89 | --warning_check NotSibling                         # 15 occurences in 10 modules | 
 | 90 | --warning_check ObjectAnimatorBinding              # 14 occurences in 5 modules | 
 | 91 | --warning_check OnClick                            # 49 occurences in 21 modules | 
 | 92 | --warning_check Orientation                        # 77 occurences in 19 modules | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 93 | --warning_check ParcelCreator                      # 23 occurences in 2 modules | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 94 | --warning_check Range                              # 80 occurences in 28 modules | 
 | 95 | --warning_check RecyclerView                       # 1 occurences in 1 modules | 
 | 96 | --warning_check ReferenceType                      # 4 occurences in 1 modules | 
 | 97 | --warning_check ResourceAsColor                    # 19 occurences in 14 modules | 
 | 98 | --warning_check RequiredSize                       # 52 occurences in 13 modules | 
 | 99 | --warning_check ResAuto                            # 3 occurences in 1 modules | 
 | 100 | --warning_check ResourceCycle                      # 37 occurences in 10 modules | 
 | 101 | --warning_check ResourceType                       # 137 occurences in 36 modules | 
 | 102 | --warning_check RestrictedApi                      # 28 occurences in 5 modules | 
 | 103 | --warning_check RtlCompat                          # 9 occurences in 6 modules | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 104 | --warning_check StringFormatInvalid                # 148 occurences in 11 modules | 
 | 105 | --warning_check StringFormatMatches                # 4800 occurences in 30 modules | 
 | 106 | --warning_check UnknownId                          # 8 occurences in 7 modules | 
| Cole Faust | c586109 | 2022-09-26 16:22:37 -0700 | [diff] [blame] | 107 | --warning_check UnspecifiedImmutableFlag | 
| Colin Cross | 014489c | 2020-06-02 20:09:13 -0700 | [diff] [blame] | 108 | --warning_check ValidFragment                      # 12 occurences in 5 modules | 
 | 109 | --warning_check ValidRestrictions                  # 5 occurences in 1 modules | 
 | 110 | --warning_check WebViewLayout                      # 3 occurences in 1 modules | 
 | 111 | --warning_check WrongCall                          # 21 occurences in 3 modules | 
 | 112 | --warning_check WrongConstant                      # 894 occurences in 126 modules | 
 | 113 | --warning_check WrongManifestParent                # 10 occurences in 4 modules | 
 | 114 | --warning_check WrongThread                        # 14 occurences in 6 modules | 
 | 115 | --warning_check WrongViewCast                      # 1 occurences in 1 modules | 
 | 116 |  | 
| Colin Cross | a36c2b8 | 2021-06-24 11:39:40 -0700 | [diff] [blame] | 117 | --warning_check CoarseFineLocation | 
 | 118 | --warning_check IntentFilterExportedReceiver | 
| Cole Faust | 3f64626 | 2022-06-29 14:58:03 -0700 | [diff] [blame] | 119 | --warning_check MissingInflatedId | 
 | 120 | --warning_check NotificationPermission | 
| Tor Norbye | b015aec | 2021-07-24 04:07:27 +0000 | [diff] [blame] | 121 | --warning_check QueryAllPackagesPermission | 
| Colin Cross | a36c2b8 | 2021-06-24 11:39:40 -0700 | [diff] [blame] | 122 | --warning_check RemoteViewLayout | 
| Tor Norbye | b015aec | 2021-07-24 04:07:27 +0000 | [diff] [blame] | 123 | --warning_check SupportAnnotationUsage | 
 | 124 | --warning_check UniqueConstants | 
| Tor Norbye | cabafde | 2023-12-07 21:57:28 +0000 | [diff] [blame] | 125 | --warning_check UseSdkSuppress | 
| ELIYAZ MOMIN | 8609726 | 2024-07-08 13:30:14 +0000 | [diff] [blame] | 126 | # TODO(b/303434307) The intent is for this to be set to error severity | 
 | 127 | # once existing violations are cleaned up | 
 | 128 | --warning_check FlaggedApi | 
| Colin Cross | 9fa43ad | 2023-07-28 15:26:30 -0700 | [diff] [blame] | 129 |  | 
| Colin Cross | 9fa43ad | 2023-07-28 15:26:30 -0700 | [diff] [blame] | 130 | --warning_check ExactAlarm | 
 | 131 | --warning_check ExpiredTargetSdkVersion | 
 | 132 | --warning_check ForegroundServicePermission | 
 | 133 | --warning_check ObsoleteSdkInt | 
 | 134 | --warning_check ScheduleExactAlarm | 
 | 135 | --warning_check StartActivityAndCollapseDeprecated | 
 | 136 | --warning_check UnspecifiedRegisterReceiverFlag | 
 | 137 | --warning_check WearMaterialTheme | 
 | 138 | --warning_check WearStandaloneAppFlag |