mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-08 20:08:56 +01:00
chore: apply detekt to :core:markdown and :core:navigation (#646)
This commit is contained in:
parent
25593e917a
commit
416a8cbd9f
15
core/markdown/detekt-baseline.xml
Normal file
15
core/markdown/detekt-baseline.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" ?>
|
||||
<SmellBaseline>
|
||||
<ManuallySuppressedIssues></ManuallySuppressedIssues>
|
||||
<CurrentIssues>
|
||||
<ID>FunctionNaming:CustomMarkdownImage.kt$@Composable internal fun CustomMarkdownImage( node: ASTNode, content: String, onOpenImage: ((String) -> Unit)?, autoLoadImages: Boolean, )</ID>
|
||||
<ID>FunctionNaming:CustomMarkdownImage.kt$@Composable internal fun CustomMarkdownImage( url: String, onOpenImage: ((String) -> Unit)?, autoLoadImages: Boolean, )</ID>
|
||||
<ID>FunctionNaming:CustomMarkdownSpoiler.kt$@Composable internal fun CustomMarkdownSpoiler( content: String, modifier: Modifier = Modifier, )</ID>
|
||||
<ID>FunctionNaming:CustomMarkdownSpoiler.kt$@Composable private fun InnerSpoilerElement( title: String, content: String, modifier: Modifier = Modifier, )</ID>
|
||||
<ID>FunctionNaming:CustomMarkdownWrapper.kt$@Composable fun CustomMarkdownWrapper( content: String, modifier: Modifier, colors: MarkdownColors = markdownColor(), typography: MarkdownTypography = markdownTypography(), padding: MarkdownPadding = markdownPadding(), autoLoadImages: Boolean, maxLines: Int? = null, onOpenUrl: ((String) -> Unit)?, onOpenImage: ((String) -> Unit)?, onClick: (() -> Unit)?, onDoubleClick: (() -> Unit)?, onLongClick: (() -> Unit)?, )</ID>
|
||||
<ID>LongMethod:CustomMarkdownWrapper.kt$@Composable fun CustomMarkdownWrapper( content: String, modifier: Modifier, colors: MarkdownColors = markdownColor(), typography: MarkdownTypography = markdownTypography(), padding: MarkdownPadding = markdownPadding(), autoLoadImages: Boolean, maxLines: Int? = null, onOpenUrl: ((String) -> Unit)?, onOpenImage: ((String) -> Unit)?, onClick: (() -> Unit)?, onDoubleClick: (() -> Unit)?, onLongClick: (() -> Unit)?, )</ID>
|
||||
<ID>LongParameterList:CustomMarkdownWrapper.kt$( content: String, modifier: Modifier, colors: MarkdownColors = markdownColor(), typography: MarkdownTypography = markdownTypography(), padding: MarkdownPadding = markdownPadding(), autoLoadImages: Boolean, maxLines: Int? = null, onOpenUrl: ((String) -> Unit)?, onOpenImage: ((String) -> Unit)?, onClick: (() -> Unit)?, onDoubleClick: (() -> Unit)?, onLongClick: (() -> Unit)?, )</ID>
|
||||
<ID>NestedBlockDepth:Utils.kt$private fun String.spoilerFixUp(): String</ID>
|
||||
<ID>ReturnCount:Utils.kt$internal fun ASTNode.findChildOfTypeRecursive(type: IElementType): ASTNode?</ID>
|
||||
</CurrentIssues>
|
||||
</SmellBaseline>
|
@ -41,6 +41,8 @@ internal fun CustomMarkdownImage(
|
||||
)
|
||||
}
|
||||
|
||||
private const val LOADING_ANIMATION_DURATION = 1000
|
||||
|
||||
@Composable
|
||||
internal fun CustomMarkdownImage(
|
||||
url: String,
|
||||
@ -80,7 +82,7 @@ internal fun CustomMarkdownImage(
|
||||
initialValue = 0f,
|
||||
targetValue = 1f,
|
||||
animationSpec = InfiniteRepeatableSpec(
|
||||
animation = tween(1000)
|
||||
animation = tween(LOADING_ANIMATION_DURATION)
|
||||
),
|
||||
)
|
||||
res
|
||||
|
8
core/navigation/detekt-baseline.xml
Normal file
8
core/navigation/detekt-baseline.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<SmellBaseline>
|
||||
<ManuallySuppressedIssues></ManuallySuppressedIssues>
|
||||
<CurrentIssues>
|
||||
<ID>TooManyFunctions:DefaultNavigationCoordinator.kt$DefaultNavigationCoordinator : NavigationCoordinator</ID>
|
||||
<ID>TooManyFunctions:NavigationCoordinator.kt$NavigationCoordinator</ID>
|
||||
</CurrentIssues>
|
||||
</SmellBaseline>
|
Loading…
x
Reference in New Issue
Block a user