From a28fd0c2e451375cd02bf58a533678d1463f29c4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 10 Jan 2024 18:21:23 +0100 Subject: [PATCH] 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 --- .editorconfig | 1 + build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 04a5a88483..3929cd6785 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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] diff --git a/build.gradle.kts b/build.gradle.kts index 0ef9844d86..3d152052f8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -72,7 +72,7 @@ allprojects { configure { // 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)