• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Treat LintError as fatal to catch invocation errors
2--fatal_check LintError
3
4# Checks which do not apply to the platform (implementation
5# in lint assumes that it's running on app code)
6
7--disable_check AnimatorKeep
8--disable_check AppBundleLocaleChanges
9--disable_check BlockedPrivateApi
10--disable_check CustomSplashScreen
11--disable_check CustomX509TrustManager
12--disable_check Deprecated
13--disable_check ExifInterface
14--disable_check HardwareIds
15--disable_check InvalidWakeLockTag
16--disable_check LibraryCustomView
17--disable_check MissingPermission
18--disable_check NonConstantResourceId
19--disable_check OldTargetApi
20--disable_check Override
21--disable_check PackageManagerGetSignatures
22--disable_check PrivateApi
23--disable_check ProtectedPermissions
24--disable_check QueryPermissionsNeeded
25--disable_check ScopedStorage
26--disable_check ServiceCast
27--disable_check SoonBlockedPrivateApi
28--disable_check SuspiciousImport
29--disable_check UnusedResources
30--disable_check ViewConstructor
31# Disable NewApi checks for the platform since platform is the one that implements
32# the API. This prevents noisy lint warnings like b/228956345#1
33# NewApi checks will continue to be enforced for apex deps since
34# lint.strict_updatability_linting will be true for those Soong modules
35--disable_check NewApi
36
37# Downgrade existing errors to warnings
38--warning_check AppCompatResource                  # 55 occurences in 10 modules
39--warning_check AppLinkUrlError                    # 111 occurences in 53 modules
40--warning_check ByteOrderMark                      # 2 occurences in 2 modules
41--warning_check DuplicateActivity                  # 3 occurences in 3 modules
42--warning_check DuplicateDefinition                # 3623 occurences in 48 modules
43--warning_check DuplicateIds                       # 207 occurences in 22 modules
44--warning_check EllipsizeMaxLines                  # 12 occurences in 7 modules
45--warning_check ExtraTranslation                   # 21276 occurences in 27 modules
46--warning_check FontValidationError                # 4 occurences in 1 modules
47--warning_check FullBackupContent                  # 16 occurences in 1 modules
48--warning_check GetContentDescriptionOverride      # 3 occurences in 2 modules
49--warning_check HalfFloat                          # 31 occurences in 1 modules
50--warning_check HardcodedDebugMode                 # 99 occurences in 95 modules
51--warning_check ImpliedQuantity                    # 703 occurences in 27 modules
52--warning_check ImpliedTouchscreenHardware         # 4 occurences in 4 modules
53--warning_check IncludeLayoutParam                 # 11 occurences in 6 modules
54--warning_check Instantiatable                     # 145 occurences in 19 modules
55--warning_check InvalidPermission                  # 6 occurences in 4 modules
56--warning_check InvalidUsesTagAttribute            # 6 occurences in 2 modules
57--warning_check JavascriptInterface                # 3 occurences in 2 modules
58--warning_check LogTagMismatch                     # 81 occurences in 13 modules
59--warning_check LongLogTag                         # 249 occurences in 12 modules
60--warning_check MenuTitle                          # 5 occurences in 4 modules
61--warning_check MissingClass                       # 537 occurences in 141 modules
62--warning_check MissingConstraints                 # 39 occurences in 10 modules
63--warning_check MissingDefaultResource             # 1257 occurences in 40 modules
64--warning_check MissingIntentFilterForMediaSearch  # 1 occurences in 1 modules
65--warning_check MissingLeanbackLauncher            # 3 occurences in 3 modules
66--warning_check MissingLeanbackSupport             # 2 occurences in 2 modules
67--warning_check MissingOnPlayFromSearch            # 1 occurences in 1 modules
68--warning_check MissingPrefix                      # 46 occurences in 41 modules
69--warning_check MissingQuantity                    # 100 occurences in 1 modules
70--warning_check MissingSuperCall                   # 121 occurences in 36 modules
71--warning_check MissingTvBanner                    # 3 occurences in 3 modules
72--warning_check NamespaceTypo                      # 3 occurences in 3 modules
73--warning_check NetworkSecurityConfig              # 46 occurences in 12 modules
74--warning_check NotSibling                         # 15 occurences in 10 modules
75--warning_check ObjectAnimatorBinding              # 14 occurences in 5 modules
76--warning_check OnClick                            # 49 occurences in 21 modules
77--warning_check Orientation                        # 77 occurences in 19 modules
78--warning_check ParcelCreator                      # 23 occurences in 2 modules
79--warning_check Range                              # 80 occurences in 28 modules
80--warning_check RecyclerView                       # 1 occurences in 1 modules
81--warning_check ReferenceType                      # 4 occurences in 1 modules
82--warning_check ResourceAsColor                    # 19 occurences in 14 modules
83--warning_check RequiredSize                       # 52 occurences in 13 modules
84--warning_check ResAuto                            # 3 occurences in 1 modules
85--warning_check ResourceCycle                      # 37 occurences in 10 modules
86--warning_check ResourceType                       # 137 occurences in 36 modules
87--warning_check RestrictedApi                      # 28 occurences in 5 modules
88--warning_check RtlCompat                          # 9 occurences in 6 modules
89--warning_check StringFormatInvalid                # 148 occurences in 11 modules
90--warning_check StringFormatMatches                # 4800 occurences in 30 modules
91--warning_check UnknownId                          # 8 occurences in 7 modules
92--warning_check ValidFragment                      # 12 occurences in 5 modules
93--warning_check ValidRestrictions                  # 5 occurences in 1 modules
94--warning_check WebViewLayout                      # 3 occurences in 1 modules
95--warning_check WrongCall                          # 21 occurences in 3 modules
96--warning_check WrongConstant                      # 894 occurences in 126 modules
97--warning_check WrongManifestParent                # 10 occurences in 4 modules
98--warning_check WrongThread                        # 14 occurences in 6 modules
99--warning_check WrongViewCast                      # 1 occurences in 1 modules
100
101--warning_check CoarseFineLocation
102--warning_check IntentFilterExportedReceiver
103--warning_check QueryAllPackagesPermission
104--warning_check RemoteViewLayout
105--warning_check SupportAnnotationUsage
106--warning_check UniqueConstants
107