From 67e303e6fd1affd4c8cebf3446e2ec152d6e5fb8 Mon Sep 17 00:00:00 2001 From: Nate Cook Date: Wed, 5 Mar 2025 09:12:08 -0600 Subject: [PATCH] Enable remaining soundness checks Adds the documentation and license header checks. Resolves #251. --- .github/workflows/pull_request.yml | 5 ----- .license_header_template | 10 ++++++++++ .licenseignore | 30 ++++++++++++++++++++++++++++++ Sources/Algorithms/Trim.swift | 1 + 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 .license_header_template create mode 100644 .licenseignore diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c18bed92..2ccdbcd1 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -25,8 +25,3 @@ jobs: soundness: name: Soundness uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main - with: - license_header_check_project_name: "Swift.org" - license_header_check_enabled: false - # https://github.com/apple/swift-algorithms/issues/251 - docs_check_enabled: false diff --git a/.license_header_template b/.license_header_template new file mode 100644 index 00000000..ea823bab --- /dev/null +++ b/.license_header_template @@ -0,0 +1,10 @@ +@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the Swift Algorithms open source project +@@ +@@ Copyright (c) YEARS Apple Inc. and the Swift project authors +@@ Licensed under Apache License v2.0 with Runtime Library Exception +@@ +@@ See https://swift.org/LICENSE.txt for license information +@@ +@@===----------------------------------------------------------------------===@@ diff --git a/.licenseignore b/.licenseignore new file mode 100644 index 00000000..16c5581b --- /dev/null +++ b/.licenseignore @@ -0,0 +1,30 @@ +.gitignore +**/.gitignore +.licenseignore +.gitattributes +.git-blame-ignore-revs +.mailfilter +.mailmap +.spi.yml +.swift-format +.editorconfig +.github/* +*.md +*.mdoc +*.txt +*.yml +*.yaml +*.json +*.png +*.bash +*.cmake +*.cmake.in +Package.swift +**/Package.swift +Package@*.swift +**/Package@*.swift +Package.resolved +**/Package.resolved +.unacceptablelanguageignore +**/Snapshots/* +Xcode/* diff --git a/Sources/Algorithms/Trim.swift b/Sources/Algorithms/Trim.swift index 134cb703..1f66cb91 100644 --- a/Sources/Algorithms/Trim.swift +++ b/Sources/Algorithms/Trim.swift @@ -7,6 +7,7 @@ // // See https://swift.org/LICENSE.txt for license information // +//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===// // trimmingPrefix(while:)