Skip to content

Commit

Permalink
[CI] Add soundness check (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmishal authored Sep 30, 2024
1 parent 83a6ed9 commit 1e0fd86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion Documentation/PrettyPrinter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <!--# ignore-unacceptable-language -->
whitespace until encountering a `syntax`, `comment, or `verbatim` tokens
prevents this.
2 changes: 1 addition & 1 deletion Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?,
Expand Down

0 comments on commit 1e0fd86

Please sign in to comment.