| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="6" by="lint 8.2.0-alpha14" type="baseline" client="gradle" dependencies="false" name="AGP (8.2.0-alpha14)" variant="all" version="8.2.0-alpha14"> |
| |
| <issue |
| id="WearStandaloneAppFlag" |
| message="Missing `<meta-data android:name="com.google.android.wearable.standalone" ../>` element" |
| errorLine1=" <application" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/AndroidManifest.xml"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/BottomNavigationScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/ButtonScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/CheckboxScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/FloatingActionButtonScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/MaterialRippleThemeTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/MaterialRippleThemeTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/NavigationRailScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(1)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/ObservableThemeTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/RadioButtonScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/RadioButtonScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/RadioButtonScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/SwitchScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/SwitchScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/SwitchScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="BanThreadSleep" |
| message="Uses Thread.sleep()" |
| errorLine1=" Thread.sleep(300)" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/androidAndroidTest/kotlin/androidx/compose/material/TabScreenshotTest.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor AnchoredDraggableState has parameter 'positionalThreshold' with type Function1<? super Float, Float>." |
| errorLine1=" internal val positionalThreshold: (totalDistance: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function1<Float, Float> of 'getPositionalThreshold$lint_module'." |
| errorLine1=" internal val positionalThreshold: (totalDistance: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor AnchoredDraggableState has parameter 'velocityThreshold' with type Function0<Float>." |
| errorLine1=" internal val velocityThreshold: () -> Float," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function0<Float> of 'getVelocityThreshold$lint_module'." |
| errorLine1=" internal val velocityThreshold: () -> Float," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor AnchoredDraggableState has parameter 'positionalThreshold' with type Function1<? super Float, Float>." |
| errorLine1=" positionalThreshold: (totalDistance: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor AnchoredDraggableState has parameter 'velocityThreshold' with type Function0<Float>." |
| errorLine1=" velocityThreshold: () -> Float," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Saver has parameter 'positionalThreshold' with type Function1<? super Float, Float>." |
| errorLine1=" positionalThreshold: (distance: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Saver has parameter 'velocityThreshold' with type Function0<Float>." |
| errorLine1=" velocityThreshold: () -> Float," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/AnchoredDraggable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'calculateBackLayerConstraints' with type Function1<? super Constraints, ? extends Constraints>." |
| errorLine1=" val calculateBackLayerConstraints: (Constraints) -> Constraints = {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/BackdropScaffold.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BackdropStack has parameter 'calculateBackLayerConstraints' with type Function1<? super Constraints, Constraints>." |
| errorLine1=" calculateBackLayerConstraints: (Constraints) -> Constraints," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/BackdropScaffold.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BackdropStack has parameter 'frontLayer' with type Function2<? super Constraints, ? super Float, Unit>." |
| errorLine1=" frontLayer: @Composable @UiComposable (Constraints, Float) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/BackdropScaffold.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BottomNavigationTransition has parameter 'content' with type Function1<? super Float, Unit>." |
| errorLine1=" content: @Composable (animationProgress: Float) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/BottomNavigation.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BottomSheet has parameter 'calculateAnchors' with type Function1<? super IntSize, ? extends DraggableAnchors<BottomSheetValue>>." |
| errorLine1=" calculateAnchors: (sheetSize: IntSize) -> DraggableAnchors<BottomSheetValue>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/BottomSheetScaffold.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BottomSheetScaffoldLayout has parameter 'bottomSheet' with type Function1<? super Integer, Unit>." |
| errorLine1=" bottomSheet: @Composable (layoutHeight: Int) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/BottomSheetScaffold.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method BottomSheetScaffoldLayout has parameter 'sheetOffset' with type Function0<Float>." |
| errorLine1=" sheetOffset: () -> Float," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/BottomSheetScaffold.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method awaitHorizontalPointerSlopOrCancellation has parameter 'onPointerSlopReached' with type Function2<? super PointerInputChange, ? super Float, Unit>." |
| errorLine1=" onPointerSlopReached: (change: PointerInputChange, overSlop: Float) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/DragGestureDetectorCopy.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Scrim has parameter 'fraction' with type Function0<Float>." |
| errorLine1=" fraction: () -> Float," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Drawer.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method updateHeight has parameter 'onHeightUpdate' with type Function1<? super Integer, Unit>." |
| errorLine1=" onHeightUpdate: (Int) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/androidMain/kotlin/androidx/compose/material/ExposedDropdownMenu.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method NavigationRailTransition has parameter 'content' with type Function1<? super Float, Unit>." |
| errorLine1=" content: @Composable (animationProgress: Float) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/NavigationRail.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method OutlinedTextFieldLayout has parameter 'onLabelMeasured' with type Function1<? super Size, Unit>." |
| errorLine1=" onLabelMeasured: (Size) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor OutlinedTextFieldMeasurePolicy has parameter 'onLabelMeasured' with type Function1<? super Size, Unit>." |
| errorLine1=" private val onLabelMeasured: (Size) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method intrinsicWidth has parameter 'intrinsicMeasurer' with type Function2<? super IntrinsicMeasurable, ? super Integer, Integer>." |
| errorLine1=" intrinsicMeasurer: (IntrinsicMeasurable, Int) -> Int" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method intrinsicHeight has parameter 'intrinsicMeasurer' with type Function2<? super IntrinsicMeasurable, ? super Integer, Integer>." |
| errorLine1=" intrinsicMeasurer: (IntrinsicMeasurable, Int) -> Int" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/OutlinedTextField.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'pickerOption' with type Function3<? super PickerScope, ? super Integer, ? super Boolean, ? extends Unit>." |
| errorLine1=" val pickerOption = pickerTextOption(textStyle) { "%02d".format(it) }" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/integration/demos/PickerDemo.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method pickerGroupItemWithRSB has parameter 'option' with type Function3<? super PickerScope, ? super Integer, ? super Boolean, Unit>." |
| errorLine1=" option: @Composable PickerScope.(optionIndex: Int, pickerSelected: Boolean) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/integration/demos/PickerDemo.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method pickerTextOption has parameter 'indexToText' with type Function1<? super Integer, String>." |
| errorLine1="private fun pickerTextOption(textStyle: TextStyle, indexToText: (Int) -> String):" |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/integration/demos/PickerDemo.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function3<PickerScope, Integer, Boolean, Unit> of 'pickerTextOption'." |
| errorLine1=" (@Composable PickerScope.(optionIndex: Int, pickerSelected: Boolean) -> Unit) = {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/integration/demos/PickerDemo.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method pullRefresh has parameter 'onPull' with type Function1<? super Float, Float>." |
| errorLine1=" onPull: (pullDelta: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/pullrefresh/PullRefresh.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method pullRefresh has parameter 'onRelease' with type Function2<? super Float, ? super Continuation<? super Float>, ? extends Object>." |
| errorLine1=" onRelease: suspend (flingVelocity: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/pullrefresh/PullRefresh.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor PullRefreshNestedScrollConnection has parameter 'onPull' with type Function1<? super Float, Float>." |
| errorLine1=" private val onPull: (pullDelta: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/pullrefresh/PullRefresh.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor PullRefreshNestedScrollConnection has parameter 'onRelease' with type Function2<? super Float, ? super Continuation<? super Float>, ? extends Object>." |
| errorLine1=" private val onRelease: suspend (flingVelocity: Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/pullrefresh/PullRefresh.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Slider has parameter 'onValueChange' with type Function1<? super Float, Unit>." |
| errorLine1=" onValueChange: (Float) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'scaleToUserValue' with type Function1<? super Float, ? extends Float>." |
| errorLine1=" fun scaleToUserValue(offset: Float) =" |
| errorLine2=" ^"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'scaleToOffset' with type Function1<? super Float, ? extends Float>." |
| errorLine1=" fun scaleToOffset(userValue: Float) =" |
| errorLine2=" ^"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'scaleToOffset' with type Function1<? super Float, ? extends Float>." |
| errorLine1=" fun scaleToOffset(userValue: Float) =" |
| errorLine2=" ^"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'postPointerSlop' with type Function2<? super PointerInputChange, ? super Float, ? extends Unit>." |
| errorLine1=" val postPointerSlop = { pointerInput: PointerInputChange, offset: Float ->" |
| errorLine2=" ^"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method CorrectValueSideEffect has parameter 'scaleToOffset' with type Function1<? super Float, Float>." |
| errorLine1=" scaleToOffset: (Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method sliderSemantics has parameter 'onValueChange' with type Function1<? super Float, Unit>." |
| errorLine1=" onValueChange: (Float) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type State<Function2<Boolean, Float, Unit>> of 'getOnDrag'." |
| errorLine1=" val onDrag: State<(Boolean, Float) -> Unit>," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in constructor SliderDraggableState has parameter 'onDelta' with type Function1<? super Float, Unit>." |
| errorLine1=" val onDelta: (Float) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function1<Float, Unit> of 'getOnDelta'." |
| errorLine1=" val onDelta: (Float) -> Unit" |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Slider.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method DefaultInlineSlider has parameter 'onValueChange' with type Function1<? super Float, Unit>." |
| errorLine1=" onValueChange: (Float) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/integration/demos/SliderDemo.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method DefaultInlineSlider has parameter 'onValueChange' with type Function1<? super Integer, Unit>." |
| errorLine1=" onValueChange: (Int) -> Unit," |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/wear/compose/integration/demos/SliderDemo.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method setThresholds$lint_module has parameter '<set-?>' with type Function2<? super Float, ? super Float, Float>." |
| errorLine1=" internal var thresholds: (Float, Float) -> Float by mutableStateOf({ _, _ -> 0f })" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in return type Function2<Float, Float, Float> of 'getThresholds$lint_module'." |
| errorLine1=" internal var thresholds: (Float, Float) -> Float by mutableStateOf({ _, _ -> 0f })" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method computeTarget has parameter 'thresholds' with type Function2<? super Float, ? super Float, Float>." |
| errorLine1=" thresholds: (Float, Float) -> Float," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Swipeable.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method SwitchImpl has parameter 'thumbValue' with type Function0<Float>." |
| errorLine1=" thumbValue: () -> Float," |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/Switch.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method intrinsicWidth has parameter 'intrinsicMeasurer' with type Function2<? super IntrinsicMeasurable, ? super Integer, Integer>." |
| errorLine1=" intrinsicMeasurer: (IntrinsicMeasurable, Int) -> Int" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/TextField.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method intrinsicHeight has parameter 'intrinsicMeasurer' with type Function2<? super IntrinsicMeasurable, ? super Integer, Integer>." |
| errorLine1=" intrinsicMeasurer: (IntrinsicMeasurable, Int) -> Int" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/TextField.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable 'labelColor' with type Function1<? super InputPhase, ? extends Color>." |
| errorLine1=" val labelColor: @Composable (InputPhase) -> Color = {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Transition has parameter 'contentColor' with type Function1<? super InputPhase, Color>." |
| errorLine1=" contentColor: @Composable (InputPhase) -> Color," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInLambda" |
| message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method Transition has parameter 'content' with type Function4<? super Float, ? super Color, ? super Color, ? super Float, Unit>." |
| errorLine1=" content: @Composable (" |
| errorLine2=" ^"> |
| <location |
| file="src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt"/> |
| </issue> |
| |
| </issues> |