File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed
openapi/TestSwiftOrgClient Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 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+
115import Foundation
216
317package struct Test : Sendable {
Original file line number Diff line number Diff line change 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+
115import OpenAPIRuntime
216import HTTPTypes
317import Foundation
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1818
1919function 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
2424printf " => Checking for unacceptable language... "
@@ -45,11 +45,11 @@ tmp=$(mktemp /tmp/.swift-org-soundness_XXXXXX)
4545for 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
6868EOF
6969 ;;
7070 bash)
71+ exceptions=( -name " placeholder" )
7172 matching_files=( -name ' *.sh' )
7273 cat > " $tmp " << "EOF "
7374#!/bin/bash
8788EOF
8889 ;;
8990 python)
91+ exceptions=( -name " placeholder" )
9092 matching_files=( -name ' *.py' )
9193 cat > " $tmp " << "EOF "
9294#!/usr/bin/env python
You can’t perform that action at this time.
0 commit comments