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 1a16f34 commit 3446b15
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kotlin/services/kms/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:10.3.0")
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"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ suspend fun main(args: Array<String>) {
// snippet-start:[kms.kotlin_create_alias.main]
suspend fun createCustomAlias(
targetKeyIdVal: String?,
aliasNameVal: String?
aliasNameVal: String?,
) {
val request =
CreateAliasRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ suspend fun main(args: Array<String>) {
suspend fun createNewGrant(
keyIdVal: String?,
granteePrincipalVal: String?,
operation: String
operation: String,
): String? {
val operationOb = GrantOperation.fromValue(operation)
val grantOperationList = ArrayList<GrantOperation>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ suspend fun encryptData(keyIdValue: String): ByteArray? {
suspend fun decryptData(
encryptedDataVal: ByteArray?,
keyIdVal: String?,
path: String
path: String,
) {
val decryptRequest =
DecryptRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ suspend fun main(args: Array<String>) {
// snippet-start:[kms.kotlin_revoke_grant.main]
suspend fun revokeKeyGrant(
keyIdVal: String?,
grantIdVal: String?
grantIdVal: String?,
) {
val request =
RevokeGrantRequest {
Expand Down

0 comments on commit 3446b15

Please sign in to comment.