Skip to content

Commit a0eea05

Browse files
committed
Add android lint baseline file
1 parent 8bf69f1 commit a0eea05

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

android/build.gradle

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,16 @@ 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"
5954
}
55+
6056
sourceSets {
6157
main {
6258
java.srcDirs = ['../src/main/java']

android/lint-baseline.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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="LambdaLast"
6+
message="Functional interface parameters (such as parameter 1, &quot;tokenCredential&quot;, in com.microsoft.graph.core.requests.GraphClientFactory.create) should be last to improve Kotlin interoperability; see https://kotlinlang.org/docs/reference/java-interop.html#sam-conversions"
7+
errorLine1=" public static OkHttpClient.Builder create(@Nonnull final TokenCredential tokenCredential, @Nonnull final RequestOption[] requestOptions) {"
8+
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
9+
<location
10+
file="${:*debug*MAIN*sourceProvider*0*javaDir*0}/com/microsoft/graph/core/requests/GraphClientFactory.java"
11+
line="73"
12+
column="95"/>
13+
</issue>
14+
15+
</issues>

0 commit comments

Comments
 (0)