Skip to content

Commit

Permalink
disable KtLint's broken experimental:type-parameter-list-spacing rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow authored and kodiakhq[bot] committed May 27, 2022
1 parent 9bc22b2 commit f8f469a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ extensions.configure(KtlintExtension::class.java) {
"max-line-length", // manually formatting still does this, and KTLint will still wrap long chains when possible
"filename", // same as Detekt's MatchingDeclarationName, but Detekt's version can be suppressed and this can't
"experimental:argument-list-wrapping", // doesn't work half the time
"experimental:no-empty-first-line-in-method-block" // code golf...
"experimental:no-empty-first-line-in-method-block", // code golf...
// This can be re-enabled once 0.46.0 is released
// https://github.com/pinterest/ktlint/issues/1435
"experimental:type-parameter-list-spacing"
)
)
require(libsCatalog.version("ktlint-lib").requiredVersion < "0.46.0") {
"Re-enable the `experimental:type-parameter-list-spacing` rule when updating to 0.46.0."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package modulecheck.dagger

/** shorthand for `Set<@JvmSuppressWildcards T>` */
typealias DaggerSet <T> = Set<@JvmSuppressWildcards T>
typealias DaggerSet<T> = Set<@JvmSuppressWildcards T>

/** shorthand for `List<@JvmSuppressWildcards T>` */
typealias DaggerList <T> = List<@JvmSuppressWildcards T>
typealias DaggerList<T> = List<@JvmSuppressWildcards T>

0 comments on commit f8f469a

Please sign in to comment.