From 5b933eba203fb5266e146a2488a0cdee278a9644 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Fri, 17 Jul 2020 10:10:50 +0100 Subject: [PATCH] Clean up and pass sanity checker --- CONTRIBUTORS.txt | 18 ++++++++++++++++++ .../StructuredFieldDecoderTests.swift | 2 +- .../StructuredFieldEncoderTests.swift | 2 +- scripts/check_no_api_breakages.sh | 2 +- scripts/generate_contributors_list.sh | 9 ++++----- scripts/generate_docs.sh | 2 +- scripts/sanity.sh | 8 ++++---- 7 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 CONTRIBUTORS.txt diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt new file mode 100644 index 0000000..a2d3cda --- /dev/null +++ b/CONTRIBUTORS.txt @@ -0,0 +1,18 @@ +For the purpose of tracking copyright, this is the list of individuals and +organizations who have contributed source code to SwiftNIO. + +For employees of an organization/company where the copyright of work done +by employees of that company is held by the company itself, only the company +needs to be listed here. + +## COPYRIGHT HOLDERS + +- Apple Inc. (all contributors with '@apple.com') + +### Contributors + +- Cory Benfield + +**Updating this list** + +Please do not edit this file manually. It is generated using `./scripts/generate_contributors_list.sh`. If a name is misspelled or appearing multiple times: add an entry in `./.mailmap` diff --git a/Tests/StructuredHeadersTests/StructuredFieldDecoderTests.swift b/Tests/StructuredHeadersTests/StructuredFieldDecoderTests.swift index cd9994b..f2e784a 100644 --- a/Tests/StructuredHeadersTests/StructuredFieldDecoderTests.swift +++ b/Tests/StructuredHeadersTests/StructuredFieldDecoderTests.swift @@ -1,4 +1,3 @@ -import CodableStructuredHeaders //===----------------------------------------------------------------------===// // // This source file is part of the SwiftNIO open source project @@ -12,6 +11,7 @@ import CodableStructuredHeaders // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import CodableStructuredHeaders import Foundation import StructuredHeaders import XCTest diff --git a/Tests/StructuredHeadersTests/StructuredFieldEncoderTests.swift b/Tests/StructuredHeadersTests/StructuredFieldEncoderTests.swift index 5fc0b12..b5fefa1 100644 --- a/Tests/StructuredHeadersTests/StructuredFieldEncoderTests.swift +++ b/Tests/StructuredHeadersTests/StructuredFieldEncoderTests.swift @@ -1,4 +1,3 @@ -import CodableStructuredHeaders //===----------------------------------------------------------------------===// // // This source file is part of the SwiftNIO open source project @@ -12,6 +11,7 @@ import CodableStructuredHeaders // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import CodableStructuredHeaders import Foundation import StructuredHeaders import XCTest diff --git a/scripts/check_no_api_breakages.sh b/scripts/check_no_api_breakages.sh index 5f0af08..3f04a2b 100755 --- a/scripts/check_no_api_breakages.sh +++ b/scripts/check_no_api_breakages.sh @@ -7,7 +7,7 @@ ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information -## See CONTRIBUTORS.md for the list of SwiftNIO project authors +## See CONTRIBUTORS.txt for the list of SwiftNIO project authors ## ## SPDX-License-Identifier: Apache-2.0 ## diff --git a/scripts/generate_contributors_list.sh b/scripts/generate_contributors_list.sh index 3ffeb29..25fa9d1 100755 --- a/scripts/generate_contributors_list.sh +++ b/scripts/generate_contributors_list.sh @@ -7,7 +7,7 @@ ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information -## See CONTRIBUTORS.md for the list of SwiftNIO project authors +## See CONTRIBUTORS.txt for the list of SwiftNIO project authors ## ## SPDX-License-Identifier: Apache-2.0 ## @@ -17,7 +17,7 @@ set -eu here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" contributors=$( cd "$here"/.. && git shortlog -es | cut -f2 | sed 's/^/- /' ) -cat > "$here/../CONTRIBUTORS.md" <<- EOF +cat > "$here/../CONTRIBUTORS.txt" <<- EOF For the purpose of tracking copyright, this is the list of individuals and organizations who have contributed source code to SwiftNIO. @@ -33,8 +33,7 @@ cat > "$here/../CONTRIBUTORS.md" <<- EOF $contributors - ## Updating this list + **Updating this list** - Please do not edit this file manually. It is generated using \`./scripts/generate_contributors_list.sh\`. - If a name is misspelled or appearing multiple times: add an entry in \`./.mailmap\` (see [docs](https://git-scm.com/docs/git-shortlog#_mapping_authors)) + Please do not edit this file manually. It is generated using \`./scripts/generate_contributors_list.sh\`. If a name is misspelled or appearing multiple times: add an entry in \`./.mailmap\` EOF diff --git a/scripts/generate_docs.sh b/scripts/generate_docs.sh index 6b7ec3f..2b9e089 100755 --- a/scripts/generate_docs.sh +++ b/scripts/generate_docs.sh @@ -7,7 +7,7 @@ ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information -## See CONTRIBUTORS.md for the list of SwiftNIO project authors +## See CONTRIBUTORS.txt for the list of SwiftNIO project authors ## ## SPDX-License-Identifier: Apache-2.0 ## diff --git a/scripts/sanity.sh b/scripts/sanity.sh index cc0b924..926e430 100755 --- a/scripts/sanity.sh +++ b/scripts/sanity.sh @@ -7,7 +7,7 @@ ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information -## See CONTRIBUTORS.md for the list of SwiftNIO project authors +## See CONTRIBUTORS.txt for the list of SwiftNIO project authors ## ## SPDX-License-Identifier: Apache-2.0 ## @@ -56,7 +56,7 @@ for language in swift-or-c bash dtrace; do // Licensed under Apache License v2.0 // // See LICENSE.txt for license information -// See CONTRIBUTORS.md for the list of SwiftNIO project authors +// See CONTRIBUTORS.txt for the list of SwiftNIO project authors // // SPDX-License-Identifier: Apache-2.0 // @@ -75,7 +75,7 @@ EOF ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information -## See CONTRIBUTORS.md for the list of SwiftNIO project authors +## See CONTRIBUTORS.txt for the list of SwiftNIO project authors ## ## SPDX-License-Identifier: Apache-2.0 ## @@ -94,7 +94,7 @@ EOF * Licensed under Apache License v2.0 * * See LICENSE.txt for license information - * See CONTRIBUTORS.md for the list of SwiftNIO project authors + * See CONTRIBUTORS.txt for the list of SwiftNIO project authors * * SPDX-License-Identifier: Apache-2.0 *