This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 884
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df25f32
commit c6731df
Showing
16 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<issues format="6" by="lint 8.0.0-beta02" type="baseline" client="gradle" dependencies="false" name="AGP (8.0.0-beta02)" variant="all" version="8.0.0-beta02"> | ||
|
||
<issue | ||
id="ComposeParameterOrder" | ||
message="Parameters in a composable function should be ordered following this pattern: params without defaults, modifiers, params with defaults and optionally, a trailing function that might not have a default param.
Current params are: [title: @Composable () -> Unit, modifier: Modifier = Modifier, navigationIcon: @Composable () -> Unit, bottomContent: @Composable (() -> Unit)? = null, actions: @Composable RowScope.() -> Unit = {}, containerColor: Color = MaterialTheme.colorScheme.surface, contentColor: Color = contentColorFor(containerColor), elevation: Dp = 0.dp] but should be [title: @Composable () -> Unit, navigationIcon: @Composable () -> Unit, modifier: Modifier = Modifier, bottomContent: @Composable (() -> Unit)? = null, actions: @Composable RowScope.() -> Unit = {}, containerColor: Color = MaterialTheme.colorScheme.surface, contentColor: Color = contentColorFor(containerColor), elevation: Dp = 0.dp].
See https://slackhq.github.io/compose-lints/rules/#ordering-composable-parameters-properly for more information." | ||
errorLine1="/**" | ||
errorLine2="^"> | ||
<location | ||
file="src/main/java/app/tivi/common/compose/ui/AppBar.kt" | ||
line="39" | ||
column="1"/> | ||
</issue> | ||
|
||
<issue | ||
id="ComposeUnstableCollections" | ||
message="The Compose Compiler cannot infer the stability of a parameter if a List<SortOption> is used in it, even if the item type is stable.
You should use Kotlinx Immutable Collections instead: `sortOptions: ImmutableList<SortOption>` or create an `@Immutable` wrapper for this class: `@Immutable data class SortOptionsList(val items: List<SortOption>)`
See https://slackhq.github.io/compose-lints/rules/#avoid-using-unstable-collections for more information." | ||
errorLine1=" sortOptions: List<SortOption>," | ||
errorLine2=" ~~~~~~~~~~~~~~~~"> | ||
<location | ||
file="src/main/java/app/tivi/common/compose/ui/SortChip.kt" | ||
line="43" | ||
column="18"/> | ||
</issue> | ||
|
||
<issue | ||
id="ComposeUnstableCollections" | ||
message="The Compose Compiler cannot infer the stability of a parameter if a List<SortOption> is used in it, even if the item type is stable.
You should use Kotlinx Immutable Collections instead: `sortOptions: ImmutableList<SortOption>` or create an `@Immutable` wrapper for this class: `@Immutable data class SortOptionsList(val items: List<SortOption>)`
See https://slackhq.github.io/compose-lints/rules/#avoid-using-unstable-collections for more information." | ||
errorLine1=" sortOptions: List<SortOption>," | ||
errorLine2=" ~~~~~~~~~~~~~~~~"> | ||
<location | ||
file="src/main/java/app/tivi/common/compose/ui/SortMenuPopup.kt" | ||
line="32" | ||
column="18"/> | ||
</issue> | ||
|
||
</issues> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters