Last active
June 24, 2023 02:59
-
-
Save caseykulm/b3158767b87e8fa34fde731d9905b973 to your computer and use it in GitHub Desktop.
Easier Lint Options to encourage getting started - https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.LintOptions.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android { | |
| lintOptions { | |
| // Severity Overrides | |
| warning ( | |
| // These are errors by default | |
| "OnClick", | |
| "MissingPermission", | |
| "MissingSuperCall", | |
| "GradleCompatible", | |
| "GradlePluginVersion", | |
| "MergeMarker", | |
| "MissingLeanbackLauncher", | |
| "MissingRegistered", | |
| "NotInterpolated", | |
| "PendingBindings", | |
| "RecyclerView", | |
| "StringShouldBeInt", | |
| "DalvikOverride", | |
| "MissingTvBanner", | |
| "ResourceAsColor", | |
| "WebViewLayout", | |
| "DuplicateDefinition", | |
| "GradleGetter", | |
| "ImpliedTouchscreenHardware", | |
| "InvalidAnalyticsName", | |
| "InvalidPackage", | |
| "InvalidResourceFolder", | |
| "InvalidUsesTagAttribute", | |
| "MissingConstraints", | |
| "MissingLeanbackSupport", | |
| "MissingOnPlayFromSearch", | |
| "MissingPrefix", | |
| "NewApi", | |
| "Override", | |
| "PropertyEscape", | |
| "Range", | |
| "Suspicious0dp", | |
| "UnsupportedTvHardware", | |
| "WrongThread", | |
| "AppCompatResource", | |
| "AppLinksAutoVerifyError", | |
| "IncludeLayoutParam", | |
| "LogTagMismatch", | |
| "LongLogTag", | |
| "ProtectedPermissions", | |
| "VectorDrawableCompat", | |
| "GradleIdeError", | |
| "ObjectAnimatorBinding", | |
| "RequiredSize", | |
| "RestrictedApi", | |
| "LocalSuppress", | |
| "ParcelCreator", | |
| "UniqueConstants", | |
| "AccidentalOctal", | |
| "MangledCRLF", | |
| "Orientation", | |
| "SupportAnnotationUsage", | |
| "StringFormatInvalid", | |
| "StringFormatMatches", | |
| "MissingQuantity", | |
| "ImpliedQuantity", | |
| "JavascriptInterface", | |
| "WrongConstant", | |
| "InvalidPermission", | |
| "MenuTitle", | |
| "RtlCompat", | |
| "ObsoleteLintCustomCheck", | |
| "WrongThreadInterprocedural", | |
| "UnsupportedChromeOsHardware", | |
| "UnpackedNativeCode", | |
| "VectorPath", | |
| "AppLinkUrlError", | |
| "KeyboardInaccessibleWidget", | |
| // These are Timber errors by default | |
| "LogNotTimber", | |
| "ThrowableNotAtBeginning", | |
| "TimberExceptionLogging", | |
| "BinaryOperationInTimber", | |
| // These are warnings by default | |
| "AdapterViewChildren", | |
| "StopShip", | |
| "SuspiciousImport", | |
| "UsesMinSdkAttributes", | |
| "IllegalResourceRef", | |
| "ScrollViewCount", | |
| "CommitTransaction", | |
| "DeviceAdmin", | |
| "InconsistentArrays", | |
| "NestedScrolling", | |
| "ScrollViewSize", | |
| "TextViewEdits", | |
| "AppCompatMethod", | |
| "ApplySharedPref", | |
| "Assert", | |
| "CheckResult", | |
| "CommitPrefEdits", | |
| "CustomViewStyleable", | |
| "CutPasteId", | |
| "DefaultLocale", | |
| "DuplicateIncludedIds", | |
| "GradleDeprecated", | |
| "InconsistentLayout", | |
| "InlinedApi", | |
| "LocaleFolder", | |
| "MissingBackupPin", | |
| "OldTargetApi", | |
| "PinSetExpiry", | |
| "Registered", | |
| "SdCardPath", | |
| "ShortAlarm", | |
| "ShowToast", | |
| "SimpleDateFormat", | |
| "UnusedAttribute", | |
| "UseAlpha2", | |
| "WifiManagerPotentialLeak", | |
| "WrongRegion", | |
| "AppLinksAutoVerifyWarning", | |
| "BatteryLife", | |
| "DuplicateUsesFeature", | |
| "InflateParams", | |
| "ManifestOrder", | |
| "MissingId", | |
| "SQLiteString", | |
| "StateListReachable", | |
| "UnknownIdInLayout", | |
| "UnlocalizedSms", | |
| "VectorRaster", | |
| "GradleDependency", | |
| "GradleDynamicVersion", | |
| "GradleOverrides", | |
| "GradlePath", | |
| "InOrMmUsage", | |
| "NewerVersionAvailable", | |
| "VisibleForTests", | |
| "ExtraText", | |
| "InnerclassSeparator", | |
| "ParcelClassLoader", | |
| "PrivateResource", | |
| "ProguardSplit", | |
| "ShiftFlags", | |
| "SpUsage", | |
| "SwitchIntDef", | |
| "Deprecated", | |
| "MissingVersion", | |
| "PxUsage", | |
| "Typos", | |
| "PluralsCandidate", | |
| "StringFormatCount", | |
| "UnusedQuantity", | |
| "AddJavascriptInterface", | |
| "GetInstance", | |
| "SecureRandom", | |
| "TrulyRandom", | |
| "VulnerableCordovaVersion", | |
| "ExportedPreferenceActivity", | |
| "GrantAllUris", | |
| "AllowAllHostnameVerifier", | |
| "AuthLeak", | |
| "BadHostnameVerifier", | |
| "EasterEgg", | |
| "HardwareIds", | |
| "SSLCertificateSocketFactoryCreateSocket", | |
| "SSLCertificateSocketFactoryGetInsecure", | |
| "SetJavaScriptEnabled", | |
| "SetWorldReadable", | |
| "SetWorldWritable", | |
| "TrustAllX509TrustManager", | |
| "UnprotectedSMSBroadcastReceiver", | |
| "UnsafeProtectedBroadcastReceiver", | |
| "UseCheckPermission", | |
| "UsingHttp", | |
| "ExportedContentProvider", | |
| "ExportedReceiver", | |
| "ExportedService", | |
| "SignatureOrSystemPermissions", | |
| "UnsafeDynamicallyLoadedCode", | |
| "UnsafeNativeCodeLocation", | |
| "WorldReadableFiles", | |
| "WorldWriteableFiles", | |
| "AllowBackup", | |
| "DrawAllocation", | |
| "Wakelock", | |
| "Recycle", | |
| "ObsoleteLayoutParam", | |
| "ObsoleteSdkInt", | |
| "StaticFieldLeak", | |
| "UseCompoundDrawables", | |
| "ViewTag", | |
| "LogConditional", | |
| "ViewHolder", | |
| "AnimatorKeep", | |
| "DuplicateDivider", | |
| "FieldGetter", | |
| "HandlerLeak", | |
| "MergeRootFrame", | |
| "UseOfBundledGooglePlayServices", | |
| "UseSparseArrays", | |
| "UseValueOf", | |
| "DisableBaselineAlignment", | |
| "FloatMath", | |
| "InefficientWeight", | |
| "NestedWeights", | |
| "Overdraw", | |
| "UnusedResources", | |
| "UselessLeaf", | |
| "UselessParent", | |
| "TooDeepLayout", | |
| "TooManyViews", | |
| "UnusedIds", | |
| "UnusedNamespace", | |
| "AllCaps", | |
| "TypographyDashes", | |
| "TypographyEllipsis", | |
| "TypographyFractions", | |
| "TypographyQuotes", | |
| "TypographyOther", | |
| "IconNoDpi", | |
| "IconXmlAndPng", | |
| "IconColors", | |
| "IconLauncherShape", | |
| "GifUsage", | |
| "IconDipSize", | |
| "IconDuplicatesConfig", | |
| "IconExpectedSize", | |
| "IconLocation", | |
| "IconMixedNinePatch", | |
| "MipmapIcons", | |
| "MissingApplicationIcon", | |
| "IconDensities", | |
| "IconDuplicates", | |
| "IconExtension", | |
| "IconMissingDensityFolder", | |
| "ButtonOrder", | |
| "SelectableText", | |
| "BackButton", | |
| "ButtonStyle", | |
| "GoogleAppIndexingApiWarning", | |
| "GoogleAppIndexingWarning", | |
| "TextFields", | |
| "NegativeMargin", | |
| "SmallSp", | |
| "AlwaysShowAction", | |
| "ViewConstructor", | |
| "ButtonCase", | |
| "ClickableViewAccessibility", | |
| "ContentDescription", | |
| "LabelFor", | |
| "SetTextI18n", | |
| "HardcodedText", | |
| "RelativeOverlap", | |
| "RtlSymmetry", | |
| "RtlHardcoded", | |
| "RtlEnabled", | |
| ) | |
| ignore ( | |
| ) | |
| fatal ( | |
| // These are fatal by default | |
| "ResAuto", | |
| "WrongViewCast", | |
| "AaptCrash", | |
| "MockLocation", | |
| "NamespaceTypo", | |
| "Proguard", | |
| "ReferenceType", | |
| "ResourceCycle", | |
| "ResourceName", | |
| "UnknownId", | |
| "WrongFolder", | |
| "DuplicateIds", | |
| "ResourceType", | |
| "Instantiatable", | |
| "InvalidId", | |
| "LibraryCustomView", | |
| "ManifestResource", | |
| "MultipleUsesSdk", | |
| "NotSibling", | |
| "OverrideAbstract", | |
| "ServiceCast", | |
| "UniquePermission", | |
| "ValidFragment", | |
| "WifiManagerLeak", | |
| "WrongCall", | |
| "WrongManifestParent", | |
| "DuplicateActivity", | |
| "FullBackupContent", | |
| "ManifestTypo", | |
| "NetworkSecurityConfig", | |
| "NfcTechWhitespace", | |
| "ValidRestrictions", | |
| "GridLayout", | |
| "WrongCase", | |
| "MissingTranslation", | |
| "ExtraTranslation", | |
| "PackagedPrivateKey", | |
| "HardcodedDebugMode", | |
| "WearableBindListener", | |
| "ByteOrderMark", | |
| "EnforceUTF8", | |
| ) | |
| error ( | |
| // The goal is for every sane check to end up here! | |
| ) | |
| // Add rule IDs to... | |
| enable ( | |
| ) | |
| disable ( | |
| ) | |
| check ( | |
| ) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AdapterViewChildren:Warning | |
| OnClick:Error | |
| StopShip:Warning | |
| MissingPermission:Error | |
| MissingSuperCall:Error | |
| ResAuto:Fatal | |
| SuspiciousImport:Warning | |
| UsesMinSdkAttributes:Warning | |
| WrongViewCast:Fatal | |
| AaptCrash:Fatal | |
| GradleCompatible:Error | |
| GradlePluginVersion:Error | |
| IllegalResourceRef:Warning | |
| MergeMarker:Error | |
| MissingLeanbackLauncher:Error | |
| MissingRegistered:Error | |
| MockLocation:Fatal | |
| NamespaceTypo:Fatal | |
| NotInterpolated:Error | |
| PendingBindings:Error | |
| Proguard:Fatal | |
| RecyclerView:Error | |
| ReferenceType:Fatal | |
| ResourceCycle:Fatal | |
| ResourceName:Fatal | |
| ScrollViewCount:Warning | |
| StringShouldBeInt:Error | |
| UnknownId:Fatal | |
| WrongFolder:Fatal | |
| CommitTransaction:Warning | |
| DalvikOverride:Error | |
| DeviceAdmin:Warning | |
| DuplicateIds:Fatal | |
| InconsistentArrays:Warning | |
| MissingTvBanner:Error | |
| NestedScrolling:Warning | |
| ResourceAsColor:Error | |
| ResourceType:Fatal | |
| ScrollViewSize:Warning | |
| TextViewEdits:Warning | |
| WebViewLayout:Error | |
| AppCompatMethod:Warning | |
| ApplySharedPref:Warning | |
| Assert:Warning | |
| CheckResult:Warning | |
| CommitPrefEdits:Warning | |
| CustomViewStyleable:Warning | |
| CutPasteId:Warning | |
| DefaultLocale:Warning | |
| DuplicateDefinition:Error | |
| DuplicateIncludedIds:Warning | |
| GradleDeprecated:Warning | |
| GradleGetter:Error | |
| ImpliedTouchscreenHardware:Error | |
| InconsistentLayout:Warning | |
| InlinedApi:Warning | |
| Instantiatable:Fatal | |
| InvalidAnalyticsName:Error | |
| InvalidId:Fatal | |
| InvalidPackage:Error | |
| InvalidResourceFolder:Error | |
| InvalidUsesTagAttribute:Error | |
| LibraryCustomView:Fatal | |
| LocaleFolder:Warning | |
| ManifestResource:Fatal | |
| MissingBackupPin:Warning | |
| MissingConstraints:Error | |
| MissingLeanbackSupport:Error | |
| MissingOnPlayFromSearch:Error | |
| MissingPrefix:Error | |
| MultipleUsesSdk:Fatal | |
| NewApi:Error | |
| NotSibling:Fatal | |
| OldTargetApi:Warning | |
| Override:Error | |
| OverrideAbstract:Fatal | |
| PinSetExpiry:Warning | |
| PropertyEscape:Error | |
| Range:Error | |
| Registered:Warning | |
| SdCardPath:Warning | |
| ServiceCast:Fatal | |
| ShortAlarm:Warning | |
| ShowToast:Warning | |
| SimpleDateFormat:Warning | |
| Suspicious0dp:Error | |
| UniquePermission:Fatal | |
| UnsupportedTvHardware:Error | |
| UnusedAttribute:Warning | |
| UseAlpha2:Warning | |
| ValidFragment:Fatal | |
| WifiManagerLeak:Fatal | |
| WifiManagerPotentialLeak:Warning | |
| WrongCall:Fatal | |
| WrongManifestParent:Fatal | |
| WrongRegion:Warning | |
| WrongThread:Error | |
| AppCompatResource:Error | |
| AppLinksAutoVerifyError:Error | |
| AppLinksAutoVerifyWarning:Warning | |
| BatteryLife:Warning | |
| DuplicateActivity:Fatal | |
| DuplicateUsesFeature:Warning | |
| FullBackupContent:Fatal | |
| IncludeLayoutParam:Error | |
| InflateParams:Warning | |
| LogTagMismatch:Error | |
| LongLogTag:Error | |
| ManifestOrder:Warning | |
| ManifestTypo:Fatal | |
| MissingId:Warning | |
| NetworkSecurityConfig:Fatal | |
| NfcTechWhitespace:Fatal | |
| ProtectedPermissions:Error | |
| SQLiteString:Warning | |
| StateListReachable:Warning | |
| UnknownIdInLayout:Warning | |
| UnlocalizedSms:Warning | |
| ValidRestrictions:Fatal | |
| VectorDrawableCompat:Error | |
| VectorRaster:Warning | |
| GradleDependency:Warning | |
| GradleDynamicVersion:Warning | |
| GradleIdeError:Error | |
| GradleOverrides:Warning | |
| GradlePath:Warning | |
| GridLayout:Fatal | |
| InOrMmUsage:Warning | |
| NewerVersionAvailable:Warning | |
| ObjectAnimatorBinding:Error | |
| RequiredSize:Error | |
| RestrictedApi:Error | |
| VisibleForTests:Warning | |
| WrongCase:Fatal | |
| ExtraText:Warning | |
| InnerclassSeparator:Warning | |
| LocalSuppress:Error | |
| ParcelClassLoader:Warning | |
| ParcelCreator:Error | |
| PermissionImpliesUnsupportedHardware:Warning | |
| PrivateResource:Warning | |
| ProguardSplit:Warning | |
| ShiftFlags:Warning | |
| SpUsage:Warning | |
| SwitchIntDef:Warning | |
| UniqueConstants:Error | |
| AccidentalOctal:Error | |
| Deprecated:Warning | |
| MangledCRLF:Error | |
| MissingVersion:Warning | |
| Orientation:Error | |
| PxUsage:Warning | |
| SupportAnnotationUsage:Error | |
| StringFormatInvalid:Error | |
| StringFormatMatches:Error | |
| MissingQuantity:Error | |
| MissingTranslation:Fatal | |
| Typos:Warning | |
| ExtraTranslation:Fatal | |
| ImpliedQuantity:Error | |
| PluralsCandidate:Warning | |
| StringFormatCount:Warning | |
| UnusedQuantity:Warning | |
| AddJavascriptInterface:Warning | |
| GetInstance:Warning | |
| SecureRandom:Warning | |
| TrulyRandom:Warning | |
| VulnerableCordovaVersion:Warning | |
| ExportedPreferenceActivity:Warning | |
| JavascriptInterface:Error | |
| PackageManagerGetSignatures:Information | |
| PackagedPrivateKey:Fatal | |
| GrantAllUris:Warning | |
| AllowAllHostnameVerifier:Warning | |
| AuthLeak:Warning | |
| BadHostnameVerifier:Warning | |
| EasterEgg:Warning | |
| HardwareIds:Warning | |
| SSLCertificateSocketFactoryCreateSocket:Warning | |
| SSLCertificateSocketFactoryGetInsecure:Warning | |
| SetJavaScriptEnabled:Warning | |
| SetWorldReadable:Warning | |
| SetWorldWritable:Warning | |
| TrustAllX509TrustManager:Warning | |
| UnprotectedSMSBroadcastReceiver:Warning | |
| UnsafeProtectedBroadcastReceiver:Warning | |
| UseCheckPermission:Warning | |
| UsingHttp:Warning | |
| WrongConstant:Error | |
| ExportedContentProvider:Warning | |
| ExportedReceiver:Warning | |
| ExportedService:Warning | |
| HardcodedDebugMode:Fatal | |
| InvalidPermission:Error | |
| SignatureOrSystemPermissions:Warning | |
| UnsafeDynamicallyLoadedCode:Warning | |
| UnsafeNativeCodeLocation:Warning | |
| WorldReadableFiles:Warning | |
| WorldWriteableFiles:Warning | |
| AllowBackup:Warning | |
| DrawAllocation:Warning | |
| Wakelock:Warning | |
| Recycle:Warning | |
| ObsoleteLayoutParam:Warning | |
| ObsoleteSdkInt:Warning | |
| StaticFieldLeak:Warning | |
| UseCompoundDrawables:Warning | |
| ViewTag:Warning | |
| WearableBindListener:Fatal | |
| LogConditional:Warning | |
| ViewHolder:Warning | |
| AnimatorKeep:Warning | |
| DuplicateDivider:Warning | |
| FieldGetter:Warning | |
| HandlerLeak:Warning | |
| MergeRootFrame:Warning | |
| UseOfBundledGooglePlayServices:Warning | |
| UseSparseArrays:Warning | |
| UseValueOf:Warning | |
| DisableBaselineAlignment:Warning | |
| FloatMath:Warning | |
| InefficientWeight:Warning | |
| NestedWeights:Warning | |
| Overdraw:Warning | |
| UnusedResources:Warning | |
| UselessLeaf:Warning | |
| UselessParent:Warning | |
| TooDeepLayout:Warning | |
| TooManyViews:Warning | |
| UnusedIds:Warning | |
| UnusedNamespace:Warning | |
| AllCaps:Warning | |
| TypographyDashes:Warning | |
| TypographyEllipsis:Warning | |
| TypographyFractions:Warning | |
| TypographyQuotes:Warning | |
| TypographyOther:Warning | |
| IconNoDpi:Warning | |
| IconXmlAndPng:Warning | |
| IconColors:Warning | |
| IconLauncherShape:Warning | |
| GifUsage:Warning | |
| IconDipSize:Warning | |
| IconDuplicatesConfig:Warning | |
| IconExpectedSize:Warning | |
| IconLocation:Warning | |
| IconMixedNinePatch:Warning | |
| MipmapIcons:Warning | |
| MissingApplicationIcon:Warning | |
| IconDensities:Warning | |
| IconDuplicates:Warning | |
| IconExtension:Warning | |
| IconMissingDensityFolder:Warning | |
| ButtonOrder:Warning | |
| SelectableText:Warning | |
| BackButton:Warning | |
| ButtonStyle:Warning | |
| GoogleAppIndexingApiWarning:Warning | |
| GoogleAppIndexingUrlError:Error | |
| GoogleAppIndexingWarning:Warning | |
| MenuTitle:Error | |
| TextFields:Warning | |
| NegativeMargin:Warning | |
| SmallSp:Warning | |
| AlwaysShowAction:Warning | |
| ViewConstructor:Warning | |
| ButtonCase:Warning | |
| ClickableViewAccessibility:Warning | |
| ContentDescription:Warning | |
| LabelFor:Warning | |
| ByteOrderMark:Fatal | |
| SetTextI18n:Warning | |
| EnforceUTF8:Fatal | |
| HardcodedText:Warning | |
| RelativeOverlap:Warning | |
| RtlCompat:Error | |
| RtlSymmetry:Warning | |
| RtlHardcoded:Warning | |
| RtlEnabled:Warning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step 1: | |
| (\w+)\n-+\nSummary.+\n\nPriority.+\nSeverity:\s(\w+)\nCategory.+\n | |
| MURLOC_$1:$2 | |
| Step 2: | |
| MURLOC_(\w+):(\w+)(NOTE:.+) | |
| MURLOC_$1:$2 | |
| Step 3: | |
| ^((?!MURLOC).)*$ | |
| {{empty}} | |
| Step 4: | |
| ^\n | |
| {{empty}} | |
| Step 5: | |
| MURLOC_ | |
| {{empty}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment