diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5ca456bdf..b95dcd4fa 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -8,3 +8,10 @@ jobs: tests: name: Test uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main + soundness: + name: Soundness + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main + with: + format_check_enabled: false + license_header_check_enabled: false + license_header_check_project_name: "Swift.org" diff --git a/Documentation/PrettyPrinter.md b/Documentation/PrettyPrinter.md index 2883d65a5..7a62bd835 100644 --- a/Documentation/PrettyPrinter.md +++ b/Documentation/PrettyPrinter.md @@ -490,6 +490,6 @@ sense to place this label on the containing group. Oppen's algorithm prints the indentation whitespace when `break` tokens are encountered. If we have extra blank lines in between source code, this can -result in hanging or trailing whitespace. Waiting to print the indentation +result in hanging or trailing whitespace. Waiting to print the indentation whitespace until encountering a `syntax`, `comment, or `verbatim` tokens prevents this. diff --git a/Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift b/Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift index a8298eed5..7691b60be 100644 --- a/Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift +++ b/Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift @@ -1104,7 +1104,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor { /// - rightDelimiter: The right parenthesis or bracket surrounding the arguments, if any. /// - forcesBreakBeforeRightDelimiter: True if a line break should be forced before the right /// right delimiter if a line break occurred after the left delimiter, or false if the right - /// delimiter is allowed to hang on the same line as the final argument. + /// delimiter is allowed to hang on the same line as the final argument. # ignore-unacceptable-language private func arrangeFunctionCallArgumentList( _ arguments: LabeledExprListSyntax, leftDelimiter: TokenSyntax?,