Unverified Commit a559048a authored by Zelda Hessler's avatar Zelda Hessler Committed by GitHub
Browse files

formatting: run pre-commit on all files (#2236)

* formatting: run pre-commit on all files

* fix: test broken by string indent
parent c05e904d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v2.3.0
  rev: v4.4.0
  hooks:
  - id: check-yaml
  - id: end-of-file-fixer
@@ -20,7 +20,7 @@ repos:
    files: ^.*$
    pass_filenames: false
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
  rev: v1.6.1
  rev: v2.5.0
  hooks:
  - id: pretty-format-kotlin
    args: [--autofix, --ktlint-version, 0.46.1]
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ allprojects.forEach {

    it.the<JacocoPluginExtension>().apply {
        toolVersion = "0.8.8"
        reportsDirectory.set(file("${buildDir}/jacoco-reports"))
        reportsDirectory.set(file("$buildDir/jacoco-reports"))
    }
}

+11 −9
Original line number Diff line number Diff line
@@ -58,7 +58,8 @@ internal class ValidateUnsupportedConstraintsAreNotUsedTest {
        validationResult.messages shouldHaveSize 1

        // Asserts the exact message, to ensure the formatting is appropriate.
        validationResult.messages[0].message shouldBe """Operation test#TestOperation takes in input that is constrained (https://awslabs.github.io/smithy/2.0/spec/constraint-traits.html), and as such can fail with a validation exception. You must model this behavior in the operation shape in your model file.
        validationResult.messages[0].message shouldBe """
            Operation test#TestOperation takes in input that is constrained (https://awslabs.github.io/smithy/2.0/spec/constraint-traits.html), and as such can fail with a validation exception. You must model this behavior in the operation shape in your model file.
            ```smithy
            use smithy.framework#ValidationException

@@ -66,7 +67,8 @@ operation TestOperation {
                ...
                errors: [..., ValidationException] // <-- Add this.
            }
```"""
            ```
        """.trimIndent()
    }

    @Test
+3 −3

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+4 −4

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

+26 −26

File changed.

Contains only whitespace changes.

Loading