diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-04-08 00:18:53 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-04-08 00:18:53 +0200 |
commit | 8faf8222e2b2f2fa55898614aa537ea6973273b9 (patch) | |
tree | b87dd0c0469c733bdbde8ae8590573c53a6dc6d4 /build.gradle.kts | |
parent | Delete unnecessary bettercodehub config (diff) | |
download | seven-wonders-8faf8222e2b2f2fa55898614aa537ea6973273b9.tar.gz seven-wonders-8faf8222e2b2f2fa55898614aa537ea6973273b9.tar.bz2 seven-wonders-8faf8222e2b2f2fa55898614aa537ea6973273b9.zip |
Enable ktlint on sw-ui
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 12 |
1 files changed, 5 insertions, 7 deletions
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<org.jlleitschuh.gradle.ktlint.KtlintExtension> { - 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<org.jlleitschuh.gradle.ktlint.KtlintExtension> { + disabledRules.set(setOf("import-ordering", "no-wildcard-imports")) } } } |