Browse Source

Upgrade ktlint to version 1.1.1.

Need to disable `ktlint_standard:trailing-comma-on-declaration-site` else got this error:
Skipping rule(s) which are depending on a rule which is not loaded. Please check if you need to add additional rule sets before creating an issue.
  - Rule with id 'RuleId(value=standard:trailing-comma-on-declaration-site)' requires rule with id 'RuleId(value=standard:wrapping)' to be loaded
pull/2207/head
Benoit Marty 8 months ago
parent
commit
a28fd0c2e4
  1. 1
      .editorconfig
  2. 2
      build.gradle.kts

1
.editorconfig

@ -17,6 +17,7 @@ ij_wrap_on_typing = false @@ -17,6 +17,7 @@ ij_wrap_on_typing = false
# Ktlint rule, for more information see https://pinterest.github.io/ktlint/faq/#why-is-editorconfig-property-disabled_rules-deprecated-and-how-do-i-resolve-this
ktlint_standard_wrapping = disabled
ktlint_standard_trailing-comma-on-call-site = disabled
ktlint_standard_trailing-comma-on-declaration-site = disabled
ktlint_standard_spacing-between-declarations-with-annotations = disabled
[*.java]

2
build.gradle.kts

@ -72,7 +72,7 @@ allprojects { @@ -72,7 +72,7 @@ allprojects {
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
// See https://github.com/pinterest/ktlint/releases/
// TODO Regularly check for new version here ^
version.set("0.48.2")
version.set("1.1.1")
android.set(true)
ignoreFailures.set(false)
enableExperimentalRules.set(true)

Loading…
Cancel
Save