Misc lint related improvements & fixes
* Migrate to dedicated lint config to ignore issues
* Ignore additional lint errors coming from resource files
Change-Id: I7438738498bc98f3cb30d1112ee8474a2fc06ba4
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
diff --git a/build.gradle b/build.gradle
index 739be21..e2f0406 100644
--- a/build.gradle
+++ b/build.gradle
@@ -33,7 +33,7 @@
}
lint {
- ignore 'ProtectedPermissions', 'ExtraTranslation', 'ImpliedQuantity', 'MissingQuantity', 'MissingTranslation'
+ lintConfig = file("lint.xml")
}
}
diff --git a/lint.xml b/lint.xml
new file mode 100644
index 0000000..f5900df
--- /dev/null
+++ b/lint.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+ <issue id="ExtraTranslation" severity="ignore" />
+ <issue id="FullBackupContent" severity="ignore" />
+ <issue id="ImpliedQuantity" severity="ignore" />
+ <issue id="MissingQuantity" severity="ignore" />
+ <issue id="MissingTranslation" severity="ignore" />
+ <issue id="NamespaceTypo" severity="ignore" />
+ <issue id="ProtectedPermissions" severity="ignore" />
+</lint>