summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-04-08 00:18:53 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-04-08 00:18:53 +0200
commit8faf8222e2b2f2fa55898614aa537ea6973273b9 (patch)
treeb87dd0c0469c733bdbde8ae8590573c53a6dc6d4 /build.gradle.kts
parentDelete unnecessary bettercodehub config (diff)
downloadseven-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.kts12
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"))
}
}
}
bgstack15