Skip to content

Commit 4968068

Browse files
committed
Make soundness check pass
1 parent d9e7cea commit 4968068

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

openapi/TestSwiftOrgClient/Shared/Tester.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 Apple Inc. and the Swift.org project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of Swift.org project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
import Foundation
216

317
package struct Test: Sendable {

openapi/TestSwiftOrgClient/downloadswiftorgClient/Issue847Workaround.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 Apple Inc. and the Swift.org project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of Swift.org project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
115
import OpenAPIRuntime
216
import HTTPTypes
317
import Foundation

scripts/soundness.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1818

1919
function replace_acceptable_years() {
2020
# this needs to replace all acceptable forms with 'YEARS'
21-
sed -e 's/20[12][789012]-20[12][89012]/YEARS/' -e 's/20[12][89012]/YEARS/'
21+
sed -e 's/20[2][0123456789]-20[2][0123456789]/YEARS/' -e 's/20[2][0123456789]/YEARS/'
2222
}
2323

2424
printf "=> Checking for unacceptable language... "
@@ -45,11 +45,11 @@ tmp=$(mktemp /tmp/.swift-org-soundness_XXXXXX)
4545
for language in swift-or-c bash python; do
4646
declare -a matching_files
4747
declare -a exceptions
48-
expections=( )
48+
exceptions=( )
4949
matching_files=( -name '*' )
5050
case "$language" in
5151
swift-or-c)
52-
exceptions=( -name "" )
52+
exceptions=( -name "Package.swift" )
5353
matching_files=( -name '*.swift' -o -name '*.c' -o -name '*.h' )
5454
cat > "$tmp" <<"EOF"
5555
//===----------------------------------------------------------------------===//
@@ -68,6 +68,7 @@ for language in swift-or-c bash python; do
6868
EOF
6969
;;
7070
bash)
71+
exceptions=( -name "placeholder" )
7172
matching_files=( -name '*.sh' )
7273
cat > "$tmp" <<"EOF"
7374
#!/bin/bash
@@ -87,6 +88,7 @@ EOF
8788
EOF
8889
;;
8990
python)
91+
exceptions=( -name "placeholder" )
9092
matching_files=( -name '*.py' )
9193
cat > "$tmp" <<"EOF"
9294
#!/usr/bin/env python

0 commit comments

Comments
 (0)