2015-11-04 02:04:39 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<lint>
|
|
|
|
<!-- Enable relevant checks disabled by default -->
|
|
|
|
<issue id="NegativeMargin" severity="warning" />
|
|
|
|
|
|
|
|
<!-- We have a custom menu and don't conform to the recommended styles. -->
|
|
|
|
<issue id="IconColors" severity="ignore" />
|
2015-12-28 23:26:36 +03:00
|
|
|
|
2016-03-01 21:40:19 +03:00
|
|
|
<!-- We use our own preprocessing to either add or remove
|
|
|
|
`android:debuggable` when building with mach so it's
|
|
|
|
not actually hard-coded. We can probably remove this
|
|
|
|
warning when we switch to gradle. -->
|
|
|
|
<issue id="HardcodedDebugMode" severity="ignore" />
|
|
|
|
|
2016-03-22 02:20:37 +03:00
|
|
|
<!-- We have our own l10n system & don't use the platform's plurals. -->
|
|
|
|
<issue id="PluralsCandidate" severity="ignore" />
|
|
|
|
|
2016-07-05 19:04:43 +03:00
|
|
|
<!-- We don't want to have to follow the SDK release schedule: we can keep
|
|
|
|
the warning in order to not forget that there's a new SDK, but there's
|
|
|
|
no need to break on update. -->
|
|
|
|
<issue id="OldTargetApi" severity="warning" />
|
|
|
|
|
2015-12-28 23:26:36 +03:00
|
|
|
<!-- We want all lint warnings to be fatal errors.
|
|
|
|
Right now, we set these to lint warnings so:
|
|
|
|
|
|
|
|
DO NOT ADD TO THIS LIST.
|
|
|
|
|
|
|
|
We did this so we can land lint in automation
|
|
|
|
and not fail everything. -->
|
|
|
|
<issue id="AppCompatResource" severity="warning" />
|
2016-03-01 21:57:17 +03:00
|
|
|
<issue id="GoogleAppIndexingDeepLinkError" severity="warning" />
|
2016-04-20 11:34:16 +03:00
|
|
|
<issue id="GoogleAppIndexingUrlError" severity="warning" />
|
2015-12-28 23:26:36 +03:00
|
|
|
<issue id="Instantiatable" severity="warning" />
|
|
|
|
<issue id="LongLogTag" severity="warning" />
|
|
|
|
<issue id="MissingPermission" severity="warning" />
|
|
|
|
<issue id="OnClick" severity="warning" />
|
|
|
|
<issue id="ReferenceType" severity="warning" />
|
|
|
|
<issue id="ResourceAsColor" severity="warning" />
|
|
|
|
<issue id="ResourceType" severity="warning" />
|
|
|
|
<issue id="ValidFragment" severity="warning" />
|
|
|
|
<issue id="WrongConstant" severity="warning" />
|
|
|
|
|
2017-05-16 12:10:10 +03:00
|
|
|
<!-- Fixes are in progress but we would like to block future candidates.
|
|
|
|
The ** in the path are wildcards. We need these wildcards to not change our code structure.
|
|
|
|
See: http://stackoverflow.com/questions/43994420/what-path-is-the-issue-ignore-path-element-in-lint-xml-relative-to -->
|
|
|
|
<issue id="NewApi" severity="error">
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/activitystream/ActivityStreamPreference.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/dlc/DownloadContentTelemetry.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/preferences/LocaleListPreference.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/media/MediaControlService.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/db/PerProfileDatabaseProvider.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/PrintHelper.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/animation/PropertyAnimator.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/RemotePresentationService.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/db/SharedBrowserDatabaseProvider.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/tabs/TabPanelBackButton.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/toolbar/ToolbarEditText.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/util/ViewUtil.java"/>
|
|
|
|
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/IntentHelper.java"/>
|
|
|
|
<ignore path="**/media/webrtc/trunk/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java"/>
|
|
|
|
<ignore path="**/media/webrtc/trunk/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java"/>
|
2017-06-19 11:43:45 +03:00
|
|
|
<ignore path="src/photon/res/values/styles.xml"/>
|
2017-05-16 12:10:10 +03:00
|
|
|
</issue>
|
|
|
|
|
2016-04-20 11:18:33 +03:00
|
|
|
<!-- We fixed all "Registered" lint errors. However the current gradle plugin has a bug where
|
|
|
|
it ignores @SuppressLint annotations for this check. See CrashReporter class and
|
|
|
|
https://code.google.com/p/android/issues/detail?id=204846 -->
|
|
|
|
<issue id="Registered" severity="warning" />
|
|
|
|
|
2016-03-05 03:03:27 +03:00
|
|
|
<!-- WHEN YOU FIX A LINT WARNING, ADD IT TO THIS LIST.
|
|
|
|
|
|
|
|
We want all lint warnings to be fatal errors.
|
|
|
|
This is the list of checks that we've explicitly
|
|
|
|
set as errors. Ideally, once we have no more warnings,
|
|
|
|
we switch to the `warningsAsErrors` lint option
|
|
|
|
(bug 1253737) rather than listing everything explicitly. -->
|
|
|
|
<issue id="AaptCrash" severity="error" />
|
|
|
|
<issue id="Accessibility" severity="error" />
|
|
|
|
<issue id="AccidentalOctal" severity="error" />
|
|
|
|
<issue id="AdapterViewChildren" severity="error" />
|
|
|
|
<issue id="AddJavascriptInterface" severity="error" />
|
|
|
|
<issue id="AllowBackup" severity="error" />
|
|
|
|
<issue id="AlwaysShowAction" severity="error" />
|
|
|
|
<issue id="AndroidGradlePluginVersion" severity="error" />
|
|
|
|
<issue id="AppCompatMethod" severity="error" />
|
|
|
|
<issue id="AppIndexingError" severity="error" />
|
|
|
|
<issue id="AppIndexingWarning" severity="error" />
|
2016-03-10 03:57:06 +03:00
|
|
|
<issue id="Assert" severity="error" />
|
2016-03-05 03:03:27 +03:00
|
|
|
<issue id="ButtonCase" severity="error" />
|
|
|
|
<issue id="ButtonOrder" severity="error" />
|
|
|
|
<issue id="ByteOrderMark" severity="error" />
|
|
|
|
<issue id="CheckResult" severity="error" />
|
|
|
|
<issue id="Correctness" severity="error" />
|
|
|
|
<issue id="CutPasteId" severity="error" />
|
|
|
|
<issue id="DalvikOverride" severity="error" />
|
|
|
|
<issue id="DeviceAdmin" severity="error" />
|
|
|
|
<issue id="DisableBaselineAlignment" severity="error" />
|
|
|
|
<issue id="DrawAllocation" severity="error" />
|
|
|
|
<issue id="DuplicateActivity" severity="error" />
|
|
|
|
<issue id="DuplicateDefinition" severity="error" />
|
|
|
|
<issue id="DuplicateIds" severity="error" />
|
|
|
|
<issue id="DuplicateIncludedIds" severity="error" />
|
|
|
|
<issue id="DuplicateUsesFeature" severity="error" />
|
|
|
|
<issue id="ExportedContentProvider" severity="error" />
|
|
|
|
<issue id="ExportedPreferenceActivity" severity="error" />
|
|
|
|
<issue id="ExtraText" severity="error" />
|
|
|
|
<issue id="ExtraTranslation" severity="error" />
|
|
|
|
<issue id="FloatMath" severity="error" />
|
|
|
|
<issue id="FullBackupContent" severity="error" />
|
|
|
|
<issue id="GetInstance" severity="error" />
|
|
|
|
<issue id="GifUsage" severity="error" />
|
|
|
|
<issue id="GradleCompatible" severity="error" />
|
|
|
|
<issue id="GradleDependency" severity="error" />
|
|
|
|
<issue id="GradleDeprecated" severity="error" />
|
|
|
|
<issue id="GradleDynamicVersion" severity="error" />
|
|
|
|
<issue id="GradleGetter" severity="error" />
|
|
|
|
<issue id="GradleIdeError" severity="error" />
|
|
|
|
<issue id="GradlePath" severity="error" />
|
|
|
|
<issue id="GrantAllUris" severity="error" />
|
|
|
|
<issue id="GridLayout" severity="error" />
|
|
|
|
<issue id="HandlerLeak" severity="error" />
|
|
|
|
<issue id="HardcodedText" severity="error" />
|
|
|
|
<issue id="IconExtension" severity="error" />
|
|
|
|
<issue id="IconLauncherShape" severity="error" />
|
|
|
|
<issue id="IconMixedNinePatch" severity="error" />
|
|
|
|
<issue id="IconNoDpi" severity="error" />
|
|
|
|
<issue id="IllegalResourceRef" severity="error" />
|
|
|
|
<issue id="ImpliedQuantity" severity="error" />
|
|
|
|
<issue id="InOrMmUsage" severity="error" />
|
|
|
|
<issue id="IncludeLayoutParam" severity="error" />
|
|
|
|
<issue id="InconsistentArrays" severity="error" />
|
|
|
|
<issue id="InefficientWeight" severity="error" />
|
|
|
|
<issue id="InnerclassSeparator" severity="error" />
|
|
|
|
<issue id="Internationalization" severity="error" />
|
|
|
|
<issue id="InvalidId" severity="error" />
|
|
|
|
<issue id="InvalidPackage" severity="error" />
|
|
|
|
<issue id="InvalidResourceFolder" severity="error" />
|
|
|
|
<issue id="JavascriptInterface" severity="error" />
|
|
|
|
<issue id="LabelFor" severity="error" />
|
|
|
|
<issue id="LibraryCustomView" severity="error" />
|
|
|
|
<issue id="LocalSuppress" severity="error" />
|
|
|
|
<issue id="LocaleFolder" severity="error" />
|
|
|
|
<issue id="LogTagMismatch" severity="error" />
|
|
|
|
<issue id="MangledCRLF" severity="error" />
|
|
|
|
<issue id="ManifestOrder" severity="error" />
|
|
|
|
<issue id="ManifestTypo" severity="error" />
|
|
|
|
<issue id="MenuTitle" severity="error" />
|
|
|
|
<issue id="MergeRootFrame" severity="error" />
|
|
|
|
<issue id="MipmapIcons" severity="error" />
|
|
|
|
<issue id="MissingApplicationIcon" severity="error" />
|
|
|
|
<issue id="MissingId" severity="error" />
|
|
|
|
<issue id="MissingPrefix" severity="error" />
|
|
|
|
<issue id="MissingQuantity" severity="error" />
|
|
|
|
<issue id="MissingRegistered" severity="error" />
|
2016-03-14 08:25:00 +03:00
|
|
|
<issue id="MissingSuperCall" severity="error" />
|
2016-03-05 03:03:27 +03:00
|
|
|
<issue id="MissingTranslation" severity="error" />
|
|
|
|
<issue id="MissingVersion" severity="error" />
|
|
|
|
<issue id="MockLocation" severity="error" />
|
|
|
|
<issue id="MultipleUsesSdk" severity="error" />
|
|
|
|
<issue id="NamespaceTypo" severity="error" />
|
|
|
|
<issue id="NestedScrolling" severity="error" />
|
|
|
|
<issue id="NfcTechWhitespace" severity="error" />
|
|
|
|
<issue id="NotSibling" severity="error" />
|
|
|
|
<issue id="ObsoleteLayoutParam" severity="error" />
|
|
|
|
<issue id="OnClick" severity="error" />
|
|
|
|
<issue id="Orientation" severity="error" />
|
|
|
|
<issue id="Override" severity="error" />
|
|
|
|
<issue id="OverrideAbstract" severity="error" />
|
|
|
|
<issue id="PackagedPrivateKey" severity="error" />
|
|
|
|
<issue id="ParcelCreator" severity="error" />
|
|
|
|
<issue id="Performance" severity="error" />
|
|
|
|
<issue id="Proguard" severity="error" />
|
|
|
|
<issue id="ProguardSplit" severity="error" />
|
|
|
|
<issue id="PropertyEscape" severity="error" />
|
|
|
|
<issue id="ProtectedPermissions" severity="error" />
|
|
|
|
<issue id="PxUsage" severity="error" />
|
|
|
|
<issue id="Range" severity="error" />
|
|
|
|
<issue id="RelativeOverlap" severity="error" />
|
|
|
|
<issue id="RequiredSize" severity="error" />
|
|
|
|
<issue id="ResAuto" severity="error" />
|
|
|
|
<issue id="ResourceCycle" severity="error" />
|
|
|
|
<issue id="ResourceName" severity="error" />
|
|
|
|
<issue id="ResourceType" severity="error" />
|
|
|
|
<issue id="RtlCompat" severity="error" />
|
|
|
|
<issue id="RtlEnabled" severity="error" />
|
|
|
|
<issue id="ScrollViewCount" severity="error" />
|
|
|
|
<issue id="ScrollViewSize" severity="error" />
|
|
|
|
<issue id="SecureRandom" severity="error" />
|
|
|
|
<issue id="Security" severity="error" />
|
|
|
|
<issue id="ServiceCast" severity="error" />
|
|
|
|
<issue id="SetJavaScriptEnabled" severity="error" />
|
|
|
|
<issue id="ShiftFlags" severity="error" />
|
|
|
|
<issue id="ShortAlarm" severity="error" />
|
|
|
|
<issue id="ShowToast" severity="error" />
|
|
|
|
<issue id="SignatureOrSystemPermissions" severity="error" />
|
|
|
|
<issue id="StringFormatCount" severity="error" />
|
|
|
|
<issue id="StringFormatInvalid" severity="error" />
|
|
|
|
<issue id="StringFormatMatches" severity="error" />
|
|
|
|
<issue id="StringShouldBeInt" severity="error" />
|
|
|
|
<issue id="SuspiciousImport" severity="error" />
|
|
|
|
<issue id="TextFields" severity="error" />
|
|
|
|
<issue id="TextViewEdits" severity="error" />
|
|
|
|
<issue id="TooDeepLayout" severity="error" />
|
|
|
|
<issue id="TooManyViews" severity="error" />
|
|
|
|
<issue id="TrulyRandom" severity="error" />
|
|
|
|
<issue id="TypographyDashes" severity="error" />
|
|
|
|
<issue id="TypographyFractions" severity="error" />
|
|
|
|
<issue id="TypographyOther" severity="error" />
|
|
|
|
<issue id="Typos" severity="error" />
|
|
|
|
<issue id="UniqueConstants" severity="error" />
|
|
|
|
<issue id="UniquePermission" severity="error" />
|
|
|
|
<issue id="UnknownId" severity="error" />
|
|
|
|
<issue id="UnknownIdInLayout" severity="error" />
|
|
|
|
<issue id="UnlocalizedSms" severity="error" />
|
|
|
|
<issue id="UnusedNamespace" severity="error" />
|
|
|
|
<issue id="UnusedQuantity" severity="error" />
|
2016-04-29 21:36:05 +03:00
|
|
|
<issue id="UnusedResources" severity="error">
|
|
|
|
<!-- The moz.build based build system leaves a .mkdir.done file lying around in the
|
|
|
|
preprocessed_resources res/raw folder. Lint reports it as unused. We should get
|
|
|
|
rid of the file eventually. See bug 1268948. -->
|
|
|
|
<ignore path="**/raw/.mkdir.done" />
|
|
|
|
</issue>
|
2016-03-05 03:03:27 +03:00
|
|
|
<issue id="Usability" severity="error" />
|
|
|
|
<issue id="UseCheckPermission" severity="error" />
|
|
|
|
<issue id="UseCompoundDrawables" severity="error" />
|
|
|
|
<issue id="UselessLeaf" severity="error" />
|
|
|
|
<issue id="UsesMinSdkAttributes" severity="error" />
|
|
|
|
<issue id="UsingHttp" severity="error" />
|
|
|
|
<issue id="ViewHolder" severity="error" />
|
|
|
|
<issue id="ViewTag" severity="error" />
|
|
|
|
<issue id="Wakelock" severity="error" />
|
|
|
|
<issue id="WebViewLayout" severity="error" />
|
|
|
|
<issue id="WorldReadableFiles" severity="error" />
|
|
|
|
<issue id="WorldWriteableFiles" severity="error" />
|
|
|
|
<issue id="WrongCall" severity="error" />
|
|
|
|
<issue id="WrongCase" severity="error" />
|
|
|
|
<issue id="WrongConstant" severity="error" />
|
|
|
|
<issue id="WrongFolder" severity="error" />
|
|
|
|
<issue id="WrongManifestParent" severity="error" />
|
|
|
|
<issue id="WrongRegion" severity="error" />
|
|
|
|
<issue id="WrongThread" severity="error" />
|
|
|
|
<issue id="WrongViewCast" severity="error" />
|
|
|
|
|
2015-11-04 02:04:39 +03:00
|
|
|
</lint>
|