mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Bug 1366644 - Part 3b: Ignore new lint warnings. r=maliu
MozReview-Commit-ID: 4bPUQkELdd
This commit is contained in:
1 parent
cb1667ea5c
commit
210dbff0e0
3 files changed
+31
-5
No files matched your search
@@ -40,6 +40,9 @@
|
||||
<issue id="ValidFragment" severity="warning" />
|
||||
<issue id="WrongConstant" severity="warning" />
|
||||
|
||||
<!-- New Android-Gradle lint integration regressed this check. -->
|
||||
<issue id="MissingRegistered" severity="warning" />
|
||||
|
||||
<!-- 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 -->
|
||||
@@ -67,6 +70,30 @@
|
||||
https://code.google.com/p/android/issues/detail?id=204846 -->
|
||||
<issue id="Registered" severity="warning" />
|
||||
|
||||
<issue id="ObjectAnimatorBinding" severity="error">
|
||||
<!-- Two animated properties are provided by the underlying
|
||||
View implementation. -->
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/firstrun/FirstrunPager.java"/>
|
||||
</issue>
|
||||
|
||||
<!-- Tracked by Bug 1409550. -->
|
||||
<issue id="AppCompatCustomView" severity="error">
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/firstrun/FirstrunPager.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/home/PanelHeaderView.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/menu/MenuItemDefault.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/tabs/TabPanelBackButton.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/AllCapsTextView.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/ClickableWhenDisabledEditText.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/EllipsisTextView.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/SquaredImageView.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/themed/ThemedEditText.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/themed/ThemedImageButton.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/themed/ThemedImageView.java"/>
|
||||
<ignore path="**/mobile/android/base/java/org/mozilla/gecko/widget/themed/ThemedTextView.java"/>
|
||||
<ignore path="**/mobile/android/search/java/org/mozilla/search/ui/BackCaptureEditText.java"/>
|
||||
<ignore path="**/mobile/android/search/java/org/mozilla/search/ui/FacetBar.java"/>
|
||||
</issue>
|
||||
|
||||
<!-- WHEN YOU FIX A LINT WARNING, ADD IT TO THIS LIST.
|
||||
|
||||
We want all lint warnings to be fatal errors.
|
||||
@@ -151,7 +178,6 @@
|
||||
<issue id="MissingId" severity="error" />
|
||||
<issue id="MissingPrefix" severity="error" />
|
||||
<issue id="MissingQuantity" severity="error" />
|
||||
<issue id="MissingRegistered" severity="error" />
|
||||
<issue id="MissingSuperCall" severity="error" />
|
||||
<issue id="MissingTranslation" severity="error" />
|
||||
<issue id="MissingVersion" severity="error" />
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<resources>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<integer name="search_assist_launch_res">@drawable/search_launcher</integer>
|
||||
<integer name="search_assist_launch_res" tools:ignore="ReferenceType">@drawable/search_launcher</integer>
|
||||
|
||||
</resources>
|
||||
@@ -6,7 +6,6 @@ package org.mozilla.gecko.menu;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.mozilla.gecko.AppConstants.Versions;
|
||||
import org.mozilla.gecko.R;
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
@@ -14,6 +13,7 @@ import org.xmlpull.v1.XmlPullParserException;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.content.res.XmlResourceParser;
|
||||
import android.support.annotation.XmlRes;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Xml;
|
||||
import android.view.InflateException;
|
||||
@@ -50,7 +50,7 @@ public class GeckoMenuInflater extends MenuInflater {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inflate(int menuRes, Menu menu) {
|
||||
public void inflate(@XmlRes int menuRes, Menu menu) {
|
||||
|
||||
// This does not check for a well-formed XML.
|
||||
|
||||
|
||||
Reference in new issue
Block a user