Skip to content

Commit 4708ba7

Browse files
Merge pull request #49 from pkware/renovate/major-ktlintversion
Update dependency org.jlleitschuh.gradle.ktlint to v13
2 parents 0e2f83e + 741539e commit 4708ba7

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ ij_kotlin_allow_trailing_comma_on_call_site = true
1616
[*.{yml,yaml}]
1717
indent_size = 2
1818
tab_width = 2
19+
20+
[*.kt*]
21+
ktlint_code_style = intellij_idea
22+
max_line_length = 120

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
junitVersion = "5.11.0"
33
detektVersion = "1.23.8"
44
kspVersion = "1.9.23-1.0.20"
5-
ktlintVersion = "12.3.0"
5+
ktlintVersion = "13.0.0"
66

77
[libraries]
88
detekt-tooling = { module = "io.gitlab.arturbosch.detekt:detekt-tooling", version.ref = "detektVersion" }

import-extension/src/main/kotlin/com/pkware/detekt/extensions/rules/staticImport/ImportConfigValidator.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,5 @@ class ImportConfigValidator : ConfigValidator {
3838
/**
3939
* Provides a message string and a notification level for the detekt linter.
4040
*/
41-
class Message(
42-
override val message: String,
43-
override val level: Notification.Level = Notification.Level.Error,
44-
) : Notification
41+
class Message(override val message: String, override val level: Notification.Level = Notification.Level.Error) :
42+
Notification

import-extension/src/test/kotlin/com/pkware/detekt/extensions/rules/staticImport/EnforceStaticImportTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class EnforceStaticImportTest {
2828
wrapper =
2929
createEnvironment(
3030
additionalRootPaths =
31-
listOf(
32-
File(Truth::class.java.protectionDomain.codeSource.location.path),
33-
File(Arguments::class.java.protectionDomain.codeSource.location.path),
34-
),
31+
listOf(
32+
File(Truth::class.java.protectionDomain.codeSource.location.path),
33+
File(Arguments::class.java.protectionDomain.codeSource.location.path),
34+
),
3535
)
3636
env = wrapper.env
3737
}

0 commit comments

Comments
 (0)