Unverified Commit c9e6ab9a authored by david-perez's avatar david-perez Committed by GitHub
Browse files

Upgrade Kotlin, Kotest, `ktlint` and Jacoco (#1331)

This commit upgrades:

* Kotlin to 1.6.20,
* Kotest to 5.2.3,
* Ktlint to 0.45.2; and
* Jacoco to 0.8.8.

Perhaps the only noteworthy change is that Ktlint now has a lint to
detect that the name of a class/object defined solely in a file has to
coincide with the filename.
parent 572448b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ repos:
  rev: v1.6.1
  hooks:
  - id: pretty-format-kotlin
    args: [--autofix, --ktlint-version, 0.40.0]
    args: [--autofix, --ktlint-version, 0.45.2]
  - id: pretty-format-yaml
    args: [--autofix, --indent, '2']
  - id: pretty-format-rust
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ class UserAgentDecorator : RustCodegenDecorator {
 */
private class ApiVersionAndPubUse(private val runtimeConfig: RuntimeConfig, serviceTrait: ServiceTrait) :
    LibRsCustomization() {
    private val serviceId = serviceTrait.sdkId.toLowerCase().replace(" ", "")
    private val serviceId = serviceTrait.sdkId.lowercase().replace(" ", "")
    override fun section(section: LibRsSection): Writable = when (section) {
        is LibRsSection.Body -> writable {
            // PKG_VERSION comes from CrateVersionGenerator
+6 −1
Original line number Diff line number Diff line
@@ -29,7 +29,12 @@ allprojects {

apply(from = rootProject.file("gradle/maincodecoverage.gradle"))

val ktlint by configurations.creating
val ktlint by configurations.creating {
    // https://github.com/pinterest/ktlint/issues/1114#issuecomment-805793163
    attributes {
        attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
    }
}
val ktlintVersion: String by project

dependencies {
Loading