Skip to content

Commit

Permalink
chore: set up Lint baseline for sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Aug 29, 2024
1 parent 8b5bfc3 commit 6c58bae
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 0 deletions.
1 change: 1 addition & 0 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ android {
buildFeatures.compose = true
buildFeatures.viewBinding = true
composeOptions.kotlinCompilerExtensionVersion = libs.versions.androidxComposeCompiler.get()
lint.baseline = file("lint-baseline.xml")
}

dependencies {
Expand Down
125 changes: 125 additions & 0 deletions sample/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.5.2" type="baseline" client="gradle" dependencies="false" name="AGP (8.5.2)" variant="all" version="8.5.2">

<issue
id="ForegroundServiceType"
message="To call `Service.startForeground()`, the `&lt;service>` element of manifest file must have the `foregroundServiceType` attribute specified"
errorLine1=" startForeground(1, notification)"
errorLine2=" ~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/deliveryhero/whetstone/sample/MainService.kt"
line="32"
column="9"/>
</issue>

<issue
id="ExportedReceiver"
message="Exported receiver does not require permission"
errorLine1=" &lt;receiver android:name=&quot;.MainBroadcastReceiver&quot; android:exported=&quot;true&quot;/>"
errorLine2=" ~~~~~~~~">
<location
file="src/main/AndroidManifest.xml"
line="24"
column="10"/>
</issue>

<issue
id="ObsoleteSdkInt"
message="Unnecessary; SDK_INT is always >= 21"
errorLine1=" &lt;item name=&quot;android:statusBarColor&quot; tools:targetApi=&quot;l&quot;>?attr/colorPrimaryVariant&lt;/item>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values-night/themes.xml"
line="13"
column="45"/>
</issue>

<issue
id="ObsoleteSdkInt"
message="Unnecessary; SDK_INT is always >= 21"
errorLine1=" &lt;item name=&quot;android:statusBarColor&quot; tools:targetApi=&quot;l&quot;>?attr/colorPrimaryVariant&lt;/item>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/themes.xml"
line="13"
column="45"/>
</issue>

<issue
id="MonochromeLauncherIcon"
message="The application adaptive icon is missing a monochrome tag"
errorLine1="&lt;adaptive-icon xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;>"
errorLine2="^">
<location
file="src/main/res/mipmap-anydpi-v26/ic_launcher.xml"
line="2"
column="1"/>
</issue>

<issue
id="MonochromeLauncherIcon"
message="The application adaptive roundIcon is missing a monochrome tag"
errorLine1="&lt;adaptive-icon xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;>"
errorLine2="^">
<location
file="src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml"
line="2"
column="1"/>
</issue>

<issue
id="UseTomlInstead"
message="Use version catalog instead"
errorLine1=" implementation(&quot;com.google.android.material:material:1.12.0&quot;)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="build.gradle.kts"
line="35"
column="20"/>
</issue>

<issue
id="UseTomlInstead"
message="Use version catalog instead"
errorLine1=" implementation(&quot;androidx.constraintlayout:constraintlayout:2.1.4&quot;)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="build.gradle.kts"
line="36"
column="20"/>
</issue>

<issue
id="UseTomlInstead"
message="Use version catalog instead"
errorLine1=" testImplementation(&quot;junit:junit:4.13.2&quot;)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
<location
file="build.gradle.kts"
line="37"
column="24"/>
</issue>

<issue
id="UseTomlInstead"
message="Use version catalog instead"
errorLine1=" androidTestImplementation(&quot;androidx.test.ext:junit:1.2.1&quot;)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="build.gradle.kts"
line="38"
column="31"/>
</issue>

<issue
id="UseTomlInstead"
message="Use version catalog instead"
errorLine1=" androidTestImplementation(&quot;androidx.test.espresso:espresso-core:3.6.1&quot;)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="build.gradle.kts"
line="39"
column="31"/>
</issue>

</issues>

0 comments on commit 6c58bae

Please sign in to comment.