Skip to content

Commit

Permalink
Technical: Update ktlint to 1.2.1 (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech authored May 15, 2024
1 parent e36eacc commit 6b13d78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ insert_final_newline=true
ktlint_standard_annotation=disabled
ktlint_standard_max-line-length=disabled
ktlint_standard_filename=disabled
ktlint_standard_discouraged-comment-location=disabled
ktlint_standard_class-signature=disabled
ktlint_standard_spacing-between-declarations-with-annotations=disabled
ktlint_standard_blank-line-between-when-conditions=disabled
ktlint_standard_backing-property-naming=disabled
ktlint_standard_kdoc=disabled
ktlint_standard_condition-wrapping=disabled
ktlint_experimental=enabled
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ validatePlugins {

codeQualityTools {
ktlint {
toolVersion = '1.0.1'
toolVersion = '1.2.1'
}
detekt {
enabled = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ class CodeQualityToolsPlugin : Plugin<Project> {
}
}

fun hasLintPlugin(): Boolean {
return try {
Class.forName("com.android.build.gradle.LintPlugin")
true
} catch (ignored: ClassNotFoundException) {
false
}
fun hasLintPlugin(): Boolean = try {
Class.forName("com.android.build.gradle.LintPlugin")
true
} catch (ignored: ClassNotFoundException) {
false
}

fun Project.kotlinFiles(baseDir: String? = null) =
Expand Down

0 comments on commit 6b13d78

Please sign in to comment.