Bug 1177781 - Set all lint errors as warnings. r=nalexander
authorMichael Comella <michael.l.comella@gmail.com>
Mon, 28 Dec 2015 12:26:36 -0800
changeset 277879 e873ef1df11f7c0538ec2dd5f53a6568c4bb7005
parent 277878 6cfbca1410850a9892a3ec2686b52b6f8713e2fd
child 277880 2314a86a52ef77447be564e4649bc5437bd7ab92
push id69628
push usercbook@mozilla.com
push dateWed, 30 Dec 2015 11:16:09 +0000
treeherdermozilla-inbound@b493cf33851f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1177781
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1177781 - Set all lint errors as warnings. r=nalexander See added comment for motivations.
mobile/android/app/base/lint.xml
--- a/mobile/android/app/base/lint.xml
+++ b/mobile/android/app/base/lint.xml
@@ -1,8 +1,29 @@
 <?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" />
+
+    <!-- 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" />
+    <issue id="Instantiatable" severity="warning" />
+    <issue id="LongLogTag" severity="warning" />
+    <issue id="MissingPermission" severity="warning" />
+    <issue id="MissingSuperCall" severity="warning" />
+    <issue id="NewApi" 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" />
+
 </lint>