Skip to content

Commit 0a815b3

Browse files
committed
Add android lint baseline file and config
1 parent 8bf69f1 commit 0a815b3

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

android/build.gradle

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,17 @@ android {
4343
targetCompatibility JavaVersion.VERSION_1_8
4444
}
4545

46+
lint {
47+
baseline = file("lint-baseline.xml")
48+
}
49+
4650
lintOptions {
4751
textOutput "stdout"
4852
checkAllWarnings true
4953
warningsAsErrors true
50-
disable "UnusedResources" // Unused will be removed on release
51-
disable "IconExpectedSize" // Using the material icons provided from Google
52-
disable "GoogleAppIndexingApiWarning" // We might want to index our app later
53-
disable "InvalidPackage" // Butterknife, Okio and Realm
54-
disable "ResourceType" // Annotation binding
55-
disable "GradleDependency"
56-
disable "NewerVersionAvailable"
57-
disable "DuplicatePlatformClasses" // xpp3 added by azure-identity
58-
disable "LambdaLast"
54+
lintConfig file("lint.xml")
5955
}
56+
6057
sourceSets {
6158
main {
6259
java.srcDirs = ['../src/main/java']

android/lint-baseline.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<issues format="6" by="lint 8.7.2" type="baseline" client="gradle" dependencies="false" name="AGP (8.7.2)" variant="all" version="8.7.2">
3+
4+
<issue
5+
id="InvalidPackage"
6+
message="Invalid package reference in com.azure:azure-xml; not included in Android: `javax.xml.stream`. Referenced from `com.azure.xml.XmlReader`.">
7+
<location
8+
file="$GRADLE_USER_HOME/caches/modules-2/files-2.1/com.azure/azure-xml/1.1.0/8218a00c07f9f66d5dc7ae2ba613da6890867497/azure-xml-1.1.0.jar"/>
9+
</issue>
10+
11+
</issues>

android/lint.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<lint>
3+
<issue id="LambdaLast">
4+
<ignore path="../src/main/java/com/microsoft/graph/core/requests/GraphClientFactory.java" />
5+
</issue>
6+
</lint>

0 commit comments

Comments
 (0)