| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="6" by="lint 8.3.0-alpha02" type="baseline" client="gradle" dependencies="false" name="AGP (8.3.0-alpha02)" variant="all" version="8.3.0-alpha02"> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(5000L)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidTest/java/androidx/tv/foundation/lazy/list/LazyListTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(5000L)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidTest/java/androidx/tv/foundation/lazy/list/LazyListTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(5)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidTest/java/androidx/tv/foundation/lazy/list/LazyScrollTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(5)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidTest/java/androidx/tv/foundation/lazy/grid/LazyScrollTest.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<Integer> of calculateLazyLayoutPinnedIndices: replace with IntList" |
| errorLine1="): List<Int> {" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyBeyondBoundsModifier.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable pinnedItems with type List<Integer>: replace with IntList" |
| errorLine1=" val pinnedItems = mutableListOf<Int>()" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyBeyondBoundsModifier.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable pinnedItems with type List<? extends Integer>: replace with IntList" |
| errorLine1=" val pinnedItems = itemProvider.calculateLazyLayoutPinnedIndices(" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGrid.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<Integer> of calculateCrossAxisCellSizes: replace with IntList" |
| errorLine1=" fun Density.calculateCrossAxisCellSizes(availableSize: Int, spacing: Int): List<Int>" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<Integer> of calculateCellsCrossAxisSizeImpl: replace with IntList" |
| errorLine1="): List<Int> {" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method measureLazyGrid has parameter pinnedItems with type List<Integer>: replace with IntList" |
| errorLine1=" pinnedItems: List<Int>," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method calculateExtraItems has parameter pinnedItems with type List<Integer>: replace with IntList" |
| errorLine1=" pinnedItems: List<Int>," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method createLine has parameter spans with type List<TvGridItemSpan>: replace with LongList" |
| errorLine1=" spans: List<TvGridItemSpan>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="constructor LazyGridMeasuredLine has parameter spans with type List<TvGridItemSpan>: replace with LongList" |
| errorLine1=" private val spans: List<TvGridItemSpan>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridMeasuredLine.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field spans with type List<TvGridItemSpan>: replace with LongList" |
| errorLine1=" private val spans: List<TvGridItemSpan>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridMeasuredLine.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="constructor LineConfiguration has parameter spans with type List<TvGridItemSpan>: replace with LongList" |
| errorLine1=" class LineConfiguration(val firstItemIndex: Int, val spans: List<TvGridItemSpan>)" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field spans with type List<TvGridItemSpan>: replace with LongList" |
| errorLine1=" class LineConfiguration(val firstItemIndex: Int, val spans: List<TvGridItemSpan>)" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<TvGridItemSpan> of getSpans: replace with LongList" |
| errorLine1=" class LineConfiguration(val firstItemIndex: Int, val spans: List<TvGridItemSpan>)" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field cachedBucket with type List<Integer>: replace with IntList" |
| errorLine1=" /**" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field previousDefaultSpans with type List<TvGridItemSpan>: replace with LongList" |
| errorLine1=" /**" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<TvGridItemSpan> of getDefaultSpans: replace with LongList" |
| errorLine1=" private fun getDefaultSpans(currentSlotsPerLine: Int) =" |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable spans with type List<TvGridItemSpan>: replace with LongList" |
| errorLine1=" val spans = mutableListOf<TvGridItemSpan>()" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field map with type Map<Object, Integer>: replace with ObjectIntMap" |
| errorLine1=" private val map: Map<Any, Int>" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/layout/LazyLayoutKeyIndexMap.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable pinnedItems with type List<? extends Integer>: replace with IntList" |
| errorLine1=" val pinnedItems = itemProvider.calculateLazyLayoutPinnedIndices(" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyList.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method findOrComposeLazyListHeader has parameter headerIndexes with type List<Integer>: replace with IntList" |
| errorLine1=" headerIndexes: List<Int>," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyListHeaders.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<Integer> of getHeaderIndexes: replace with IntList" |
| errorLine1=" val headerIndexes: List<Int>" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyListItemProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method measureLazyList has parameter headerIndexes with type List<Integer>: replace with IntList" |
| errorLine1=" headerIndexes: List<Int>," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyListMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method measureLazyList has parameter pinnedItems with type List<Integer>: replace with IntList" |
| errorLine1=" pinnedItems: List<Int>," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyListMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method createItemsAfterList has parameter pinnedItems with type List<Integer>: replace with IntList" |
| errorLine1=" pinnedItems: List<Int>," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyListMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method createItemsBeforeList has parameter pinnedItems with type List<Integer>: replace with IntList" |
| errorLine1=" pinnedItems: List<Int>" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyListMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field _headerIndexes with type List<Integer>: replace with IntList" |
| errorLine1=" private var _headerIndexes: MutableList<Int>? = null" |
| errorLine2=" ~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<Integer> of getHeaderIndexes: replace with IntList" |
| errorLine1=" val headerIndexes: List<Int> get() = _headerIndexes ?: emptyList()" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable vard55442a7 with type List<Integer>: replace with IntList" |
| errorLine1=" val headerIndexes: List<Int> get() = _headerIndexes ?: emptyList()" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable headersIndexes with type List<Integer>: replace with IntList" |
| errorLine1=" val headersIndexes = _headerIndexes ?: mutableListOf<Int>().also {" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="variable vard554f0be with type List<Integer>: replace with IntList" |
| errorLine1=" val headersIndexes = _headerIndexes ?: mutableListOf<Int>().also {" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'key' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" key: ((index: Int) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'contentType' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" contentType: (index: Int) -> Any? = { null }," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'itemContent' with type Function2<? super TvLazyListItemScope, ? super Integer, Unit>." |
| errorLine1=" itemContent: @Composable TvLazyListItemScope.(index: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'key' with type Function2<? super Integer, ? super T, ? extends Object>." |
| errorLine1=" noinline key: ((index: Int, item: T) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'key' with type Function2<? super Integer, ? super T, ? extends Object>." |
| errorLine1=" noinline key: ((index: Int, item: T) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method LazyGrid has parameter 'slots' with type Function2<? super Density, ? super Constraints, LazyGridSlots>." |
| errorLine1=" slots: Density.(Constraints) -> LazyGridSlots," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGrid.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'measurePolicy' with type Function2<? super LazyLayoutMeasureScope, ? super Constraints, ? extends MeasureResult>." |
| errorLine1=" val measurePolicy = rememberLazyGridMeasurePolicy(" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGrid.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<LazyLayoutMeasureScope, Constraints, MeasureResult> of 'rememberLazyGridMeasurePolicy'." |
| errorLine1="private fun rememberLazyGridMeasurePolicy(" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGrid.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method rememberLazyGridMeasurePolicy has parameter 'slots' with type Function2<? super Density, ? super Constraints, LazyGridSlots>." |
| errorLine1=" slots: Density.(Constraints) -> LazyGridSlots," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGrid.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'lineOf' with type Function1<? super Integer, ? extends Integer>." |
| errorLine1=" val lineOf: (Int) -> Int = {" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridAnimateScrollScope.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<Density, Constraints, LazyGridSlots> of 'rememberColumnWidthSums'." |
| errorLine1="private fun rememberColumnWidthSums(" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<Density, Constraints, LazyGridSlots> of 'rememberRowHeightSums'." |
| errorLine1="private fun rememberRowHeightSums(" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor GridSlotCache has parameter 'calculation' with type Function2<? super Density, ? super Constraints, LazyGridSlots>." |
| errorLine1=" private val calculation: Density.(Constraints) -> LazyGridSlots" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method item has parameter 'span' with type Function1<? super TvLazyGridItemSpanScope, TvGridItemSpan>." |
| errorLine1=" span: (TvLazyGridItemSpanScope.() -> TvGridItemSpan)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'key' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" key: ((index: Int) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'span' with type Function2<? super TvLazyGridItemSpanScope, ? super Integer, TvGridItemSpan>." |
| errorLine1=" span: (TvLazyGridItemSpanScope.(index: Int) -> TvGridItemSpan)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'contentType' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" contentType: (index: Int) -> Any? = { null }," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'itemContent' with type Function2<? super TvLazyGridItemScope, ? super Integer, Unit>." |
| errorLine1=" itemContent: @Composable TvLazyGridItemScope.(index: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'span' with type Function2<? super TvLazyGridItemSpanScope, ? super T, TvGridItemSpan>." |
| errorLine1=" noinline span: (TvLazyGridItemSpanScope.(item: T) -> TvGridItemSpan)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'key' with type Function2<? super Integer, ? super T, ? extends Object>." |
| errorLine1=" noinline key: ((index: Int, item: T) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'span' with type Function3<? super TvLazyGridItemSpanScope, ? super Integer, ? super T, TvGridItemSpan>." |
| errorLine1=" noinline span: (TvLazyGridItemSpanScope.(index: Int, item: T) -> TvGridItemSpan)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method items has parameter 'span' with type Function2<? super TvLazyGridItemSpanScope, ? super T, TvGridItemSpan>." |
| errorLine1=" noinline span: (TvLazyGridItemSpanScope.(item: T) -> TvGridItemSpan)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'key' with type Function2<? super Integer, ? super T, ? extends Object>." |
| errorLine1=" noinline key: ((index: Int, item: T) -> Any)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method itemsIndexed has parameter 'span' with type Function3<? super TvLazyGridItemSpanScope, ? super Integer, ? super T, TvGridItemSpan>." |
| errorLine1=" noinline span: (TvLazyGridItemSpanScope.(index: Int, item: T) -> TvGridItemSpan)? = null," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridDsl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method measureLazyGrid has parameter 'layout' with type Function3<? super Integer, ? super Integer, ? super Function1<? super PlacementScope, Unit>, ? extends MeasureResult>." |
| errorLine1=" layout: (Int, Int, Placeable.PlacementScope.() -> Unit) -> MeasureResult" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'reverseAware' with type Function1<? super Integer, ? extends Integer>." |
| errorLine1=" fun Int.reverseAware() =" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<TvLazyGridItemSpanScope, Integer, TvGridItemSpan> of 'getDefaultSpan'." |
| errorLine1=" val DefaultSpan: TvLazyGridItemSpanScope.(Int) -> TvGridItemSpan =" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor LazyGridInterval has parameter 'key' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" override val key: ((index: Int) -> Any)?," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor LazyGridInterval has parameter 'span' with type Function2<? super TvLazyGridItemSpanScope, ? super Integer, TvGridItemSpan>." |
| errorLine1=" val span: TvLazyGridItemSpanScope.(Int) -> TvGridItemSpan," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<TvLazyGridItemSpanScope, Integer, TvGridItemSpan> of 'getSpan'." |
| errorLine1=" val span: TvLazyGridItemSpanScope.(Int) -> TvGridItemSpan," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor LazyGridInterval has parameter 'type' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" override val type: ((index: Int) -> Any?)," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor LazyGridInterval has parameter 'item' with type Function2<? super TvLazyGridItemScope, ? super Integer, Unit>." |
| errorLine1=" val item: @Composable TvLazyGridItemScope.(Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<TvLazyGridItemScope, Integer, Unit> of 'getItem'." |
| errorLine1=" val item: @Composable TvLazyGridItemScope.(Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/LazyGridSpanLayoutProvider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'keyFactory' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" val keyFactory = it.value.key" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/layout/LazyLayoutKeyIndexMap.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'indexForKeyMapping' with type Function1<? super Object, ? extends Integer>." |
| errorLine1=" val indexForKeyMapping: (Any) -> Int = { needle ->" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/layout/LazyLayoutSemantics.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'scrollByAction' with type Function2<? super Float, ? super Float, ? extends Boolean>." |
| errorLine1=" val scrollByAction: ((x: Float, y: Float) -> Boolean)? = if (userScrollEnabled) {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/layout/LazyLayoutSemantics.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'scrollToIndexAction' with type Function1<? super Integer, ? extends Boolean>." |
| errorLine1=" val scrollToIndexAction: ((Int) -> Boolean)? = if (userScrollEnabled) {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/layout/LazyLayoutSemantics.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'measurePolicy' with type Function2<? super LazyLayoutMeasureScope, ? super Constraints, ? extends MeasureResult>." |
| errorLine1=" val measurePolicy = rememberLazyListMeasurePolicy(" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyList.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<LazyLayoutMeasureScope, Constraints, MeasureResult> of 'rememberLazyListMeasurePolicy'." |
| errorLine1="private fun rememberLazyListMeasurePolicy(" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyList.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'reverseAware' with type Function1<? super Integer, ? extends Integer>." |
| errorLine1=" fun Int.reverseAware() =" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/LazyListMeasure.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method setPrefetchInfoRetriever$lint_module has parameter '<set-?>' with type Function1<? super Integer, ? extends List<Pair<Integer, Constraints>>>." |
| errorLine1=" /**" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/TvLazyGridState.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function1<Integer, List<Pair<Integer, Constraints>>> of 'getPrefetchInfoRetriever$lint_module'." |
| errorLine1=" internal var prefetchInfoRetriever: (line: Int) -> List<Pair<Int, Constraints>> by" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/grid/TvLazyGridState.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor TvLazyListInterval has parameter 'key' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" override val key: ((index: Int) -> Any)?," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor TvLazyListInterval has parameter 'type' with type Function1<? super Integer, ? extends Object>." |
| errorLine1=" override val type: ((index: Int) -> Any?)," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor TvLazyListInterval has parameter 'item' with type Function2<? super TvLazyListItemScope, ? super Integer, Unit>." |
| errorLine1=" val item: @Composable TvLazyListItemScope.(index: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<TvLazyListItemScope, Integer, Unit> of 'getItem'." |
| errorLine1=" val item: @Composable TvLazyListItemScope.(index: Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/tv/foundation/lazy/list/TvLazyListIntervalContent.kt"/> |
| </issue> |
| |
| </issues> |