mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
feat(build): remove Detekt and switch to Slack's Compose lints
This commit is contained in:
parent
d612ed44d9
commit
0ae48dee33
18 changed files with 101 additions and 812 deletions
|
@ -1,4 +1,78 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="6" by="lint 7.4.0-alpha09" type="baseline" client="gradle" dependencies="false" name="AGP (7.4.0-alpha09)" variant="all" version="7.4.0-alpha09">
|
||||
<issues format="6" by="lint 7.4.2" type="baseline" client="gradle" dependencies="false" name="AGP (7.4.2)" variant="all" version="7.4.2">
|
||||
|
||||
<issue
|
||||
id="ObsoleteSdkInt"
|
||||
message="This folder configuration (`v26`) is unnecessary; `minSdkVersion` is 26. Merge all the resources in this folder into `mipmap-anydpi`.">
|
||||
<location
|
||||
file="src/main/res/mipmap-anydpi-v26"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="IconDuplicates"
|
||||
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
|
||||
<location
|
||||
file="src/main/res/mipmap-hdpi/ic_launcher_monochrome.png"/>
|
||||
<location
|
||||
file="src/main/res/mipmap-hdpi/ic_launcher_foreground.png"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="IconDuplicates"
|
||||
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
|
||||
<location
|
||||
file="src/main/res/mipmap-mdpi/ic_launcher_monochrome.png"/>
|
||||
<location
|
||||
file="src/main/res/mipmap-mdpi/ic_launcher_foreground.png"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="IconDuplicates"
|
||||
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
|
||||
<location
|
||||
file="src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png"/>
|
||||
<location
|
||||
file="src/main/res/mipmap-xhdpi/ic_launcher_foreground.png"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="IconDuplicates"
|
||||
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
|
||||
<location
|
||||
file="src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png"/>
|
||||
<location
|
||||
file="src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="IconDuplicates"
|
||||
message="The following unrelated icon files have identical contents: ic_launcher_foreground.png, ic_launcher_monochrome.png">
|
||||
<location
|
||||
file="src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png"/>
|
||||
<location
|
||||
file="src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="ComposeUnstableCollections"
|
||||
message="The Compose Compiler cannot infer the stability of a parameter if a List<NavigationItem> is used in it, even if the item type is stable.
You should use Kotlinx Immutable Collections instead: `items: ImmutableList<NavigationItem>` or create an `@Immutable` wrapper for this class: `@Immutable data class ItemsList(val items: List<NavigationItem>)`
See https://slackhq.github.io/compose-lints/rules/#avoid-using-unstable-collections for more information."
|
||||
errorLine1=" items: List<NavigationItem>,"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/kotlin/dev/msfjarvis/claw/android/ui/decorations/ClawNavigationBar.kt"
|
||||
line="32"
|
||||
column="10"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="ComposeUnstableCollections"
|
||||
message="The Compose Compiler cannot infer the stability of a parameter if a Map<Month, List<SavedPost>> is used in it, even if the item type is stable.
You should use Kotlinx Immutable Collections instead: `items: ImmutableMap<Month, List<SavedPost>>` or create an `@Immutable` wrapper for this class: `@Immutable data class ItemsMap(val items: Map<Month, List<SavedPost>>)`
See https://slackhq.github.io/compose-lints/rules/#avoid-using-unstable-collections for more information."
|
||||
errorLine1=" items: Map<Month, List<SavedPost>>,"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/kotlin/dev/msfjarvis/claw/android/ui/lists/DatabasePosts.kt"
|
||||
line="24"
|
||||
column="10"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue