Skip to content

Commit

Permalink
Update ktlint to 0.46.0 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech authored Jun 20, 2022
1 parent f7c9546 commit 2dd23ca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ continuation_indent_size=2
insert_final_newline=true
ij_kotlin_allow_trailing_comma=true
ij_kotlin_allow_trailing_comma_on_call_site=true
disabled_rules=experimental:annotation,experimental:argument-list-wrapping,experimental:spacing-between-declarations-with-annotations
disabled_rules=annotation,argument-list-wrapping,spacing-between-declarations-with-annotations,filename
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rootProject.configure<com.vanniktech.code.quality.tools.CodeQualityToolsPluginEx
enabled = false // Kotlin only.
}
ktlint {
toolVersion = "0.45.2"
toolVersion = "0.46.0"
experimental = true
}
detekt {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/kotlin/de/belabs/appstatistics/CoreCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import java.io.File

abstract class CoreCommand : CliktCommand() {
protected val directoryAppStatistics: File by option(help = "App statistics directory")
.convert { File(it) }
.default(File(System.getProperty("user.home")).resolve(".appstatistics"))
.convert { File(it) }
.default(File(System.getProperty("user.home")).resolve(".appstatistics"))

protected val logger = Logger()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import java.util.Locale

internal class StoreReviews : CoreCommand() {
private val locale: Locale by option(help = "Locale")
.convert { Locale(it) }
.default(Locale.getDefault())
.convert { Locale(it) }
.default(Locale.getDefault())

private val timeZone: ZoneId by option(help = "Time zone")
.convert { ZoneId.of(it) }
.default(ZoneId.systemDefault())
.convert { ZoneId.of(it) }
.default(ZoneId.systemDefault())

override suspend fun runOn(organization: String, root: File) {
val directory = root.resolve("store-reviews/")
Expand Down

0 comments on commit 2dd23ca

Please sign in to comment.