Skip to content

Commit

Permalink
lintered kotlin files with ktlint v 12.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scmacdon committed Jun 16, 2024
1 parent 3446b15 commit 5ae1cb8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions kotlin/services/lambda/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.5.1")
classpath("org.jlleitschuh.gradle:ktlint-gradle:12.1.1")
}
}

Expand All @@ -35,7 +35,7 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
}
tasks.withType<KotlinCompile>() {
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ suspend fun createNewFunction(
s3BucketName: String,
myS3Key: String,
myHandler: String,
myRole: String
myRole: String,
): String? {
val functionCode =
FunctionCode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ suspend fun getSettings() {
LambdaClient { region = "us-west-2" }.use { awsLambda ->
val response = awsLambda.getAccountSettings(GetAccountSettingsRequest { })
println(
"Total code size for your account is ${response.accountLimit?.totalCodeSize} bytes"
"Total code size for your account is ${response.accountLimit?.totalCodeSize} bytes",
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

package com.kotlin.lambda

// snippet-start:[lambda.kotlin.scenario.main]
// snippet-start:[lambda.kotlin.scenario.import]
import aws.sdk.kotlin.services.lambda.LambdaClient
import aws.sdk.kotlin.services.lambda.model.CreateFunctionRequest
Expand Down Expand Up @@ -38,7 +39,6 @@ import kotlin.system.exitProcess
7. Deletes a Lambda function.
*/

// snippet-start:[lambda.kotlin.scenario.main]
suspend fun main(args: Array<String>) {
val usage = """
Usage:
Expand Down Expand Up @@ -102,7 +102,7 @@ suspend fun createScFunction(
s3BucketName: String,
myS3Key: String,
myHandler: String,
myRole: String
myRole: String,
): String {
val functionCode =
FunctionCode {
Expand Down Expand Up @@ -175,7 +175,7 @@ suspend fun invokeFunctionSc(functionNameVal: String) {
suspend fun updateFunctionCode(
functionNameVal: String?,
bucketName: String?,
key: String?
key: String?,
) {
val functionCodeRequest =
UpdateFunctionCodeRequest {
Expand All @@ -196,7 +196,7 @@ suspend fun updateFunctionCode(

suspend fun updateFunctionConfiguration(
functionNameVal: String?,
handlerVal: String?
handlerVal: String?,
) {
val configurationRequest =
UpdateFunctionConfigurationRequest {
Expand Down

0 comments on commit 5ae1cb8

Please sign in to comment.