From 8faf8222e2b2f2fa55898614aa537ea6973273b9 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Wed, 8 Apr 2020 00:18:53 +0200 Subject: Enable ktlint on sw-ui --- build.gradle.kts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index 32e93f6c..8d352df8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,13 +24,11 @@ subprojects { } afterEvaluate { - if (!project.name.startsWith("sw-ui")) { - // The import ordering expected by ktlint is alphabetical, which doesn't match IDEA's formatter. - // Since it is not configurable, we have to disable the rule. - // https://github.com/pinterest/ktlint/issues/527 - extensions.configure { - disabledRules.set(setOf("import-ordering")) - } + // The import ordering expected by ktlint is alphabetical, which doesn't match IDEA's formatter. + // Since it is not configurable, we have to disable the rule. + // https://github.com/pinterest/ktlint/issues/527 + extensions.configure { + disabledRules.set(setOf("import-ordering", "no-wildcard-imports")) } } } -- cgit