Skip to content

Commit

Permalink
chore: KtFormat
Browse files Browse the repository at this point in the history
Resolves: 10696
  • Loading branch information
ThomasIent committed Dec 11, 2024
1 parent 9635d3c commit 6acc54c
Show file tree
Hide file tree
Showing 154 changed files with 1,388 additions and 1,388 deletions.
8 changes: 4 additions & 4 deletions components/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
"proguard-rules.pro",
)
}
debug {
Expand All @@ -50,7 +50,7 @@ android {
events = setOf(
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED,
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED,
)
}
}
Expand Down Expand Up @@ -91,12 +91,12 @@ dependencies {
mavenPublishingConfig {
mavenConfigBlock {
name.set(
"Mobile Android Component Library"
"Mobile Android Component Library",
)
description.set(
"""
Use pre-built reusable components to build consistent apps.
""".trimIndent()
""".trimIndent(),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class BulletListTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -46,7 +46,7 @@ class BulletListTest {
setContent {
GdsTheme {
GdsBulletList(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ButtonsTest {
assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand Down Expand Up @@ -74,7 +74,7 @@ class ButtonsTest {
composeTestRule.setContent {
GdsTheme {
GdsButton(
buttonParameters
buttonParameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GdsIconComposableTest {
Assert.assertEquals(
"The expected parameter list size does not match the InformationProvider size!",
expectedParameterListSize,
parameterList.size
parameterList.size,
)
}

Expand Down Expand Up @@ -62,14 +62,14 @@ class GdsIconComposableTest {

fun IconParameters.verifyComposable(
composeTestRule: ComposeContentTestRule,
resources: Resources
resources: Resources,
) = composeTestRule.let { rule ->
val iconNode = rule.onNode(hasTestTag(image.toString()), true)
.assertIsDisplayed()

if (description != null) {
iconNode.assertContentDescriptionEquals(
resources.getString(description!!)
resources.getString(description!!),
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class HeadingsTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -59,7 +59,7 @@ class HeadingsTest {
setContent {
GdsTheme {
GdsHeading(
parameters
parameters,
)
}
}
Expand All @@ -72,15 +72,15 @@ class HeadingsTest {
is HeadingSize.H3 -> textSizeH3
is HeadingSize.H2 -> textSizeH2
is HeadingSize.H1 -> textSizeH1
}
},
)
assertLineHeight(
when (parameters.size) {
is HeadingSize.H4 -> lineHeightH4
is HeadingSize.H3 -> lineHeightH3
is HeadingSize.H2 -> lineHeightH2
is HeadingSize.H1 -> lineHeightH1
}
},
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class HelpTextTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -39,7 +39,7 @@ class HelpTextTest {
setContent {
GdsTheme {
GdsHelpText(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BulletListTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -42,7 +42,7 @@ class BulletListTest {
setContent {
GdsTheme {
GdsBulletList(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ContentTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand Down Expand Up @@ -71,7 +71,7 @@ class ContentTest {
setContent {
GdsTheme {
GdsContent(
parameters
parameters,
)
}
}
Expand All @@ -84,7 +84,7 @@ class ContentTest {
@Suppress("NestedBlockDepth")
fun ContentParameters.verifyComposable(
composeTestRule: ComposeContentTestRule,
resources: Resources
resources: Resources,
) = composeTestRule.let { rule ->
resource.forEach { contentText ->
contentText.subTitle?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class LinkTextTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -39,7 +39,7 @@ class LinkTextTest {
setContent {
GdsTheme {
GdsLinkText(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class InformationTest {
assertEquals(
"The expected parameter list size does not match the InformationProvider size!",
expectedParameterListSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -57,7 +57,7 @@ class InformationTest {

fun InformationParameters.verifyComposable(
composeTestRule: ComposeContentTestRule,
resources: Resources
resources: Resources,
) = composeTestRule.let { rule ->
iconParameters.verifyComposable(rule, resources)
contentParameters.verifyComposable(rule, resources)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DatePickerTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -33,7 +33,7 @@ class DatePickerTest {
setContent {
GdsTheme {
GdsDatePicker(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NumberInputTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -33,7 +33,7 @@ class NumberInputTest {
setContent {
GdsTheme {
GdsNumberInput(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RadioOptionsTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -33,7 +33,7 @@ class RadioOptionsTest {
setContent {
GdsTheme {
GdsRadioSelection(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class BulletListTest {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parameterList.size
parameterList.size,
)
}

Expand All @@ -46,7 +46,7 @@ class BulletListTest {
setContent {
GdsTheme {
GdsBulletList(
parameters
parameters,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ButtonsM3Test {
Assert.assertEquals(
"The expected size of the provider has changed!",
expectedParameterSize,
parametersList.size
parametersList.size,
)
}

Expand All @@ -55,7 +55,7 @@ class ButtonsM3Test {
composeTestRule.setContent {
GdsTheme {
GdsButton(
parameters
parameters,
)
}
}
Expand Down
Loading

0 comments on commit 6acc54c

Please sign in to comment.