From 2bd57938085c69dba513d29608dd5fea0611410f Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Sat, 7 Mar 2026 10:24:52 -0800 Subject: [PATCH] Set license header template and enable license enforcement --- .github/workflows/pull_request.yml | 2 -- .license_header_template | 12 ++++++++++++ .licenseignore | 16 ++++++++++++++++ 3 files changed, 28 insertions(+), 2 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 d0f8abb5..b04b096d 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -42,7 +42,5 @@ jobs: shell_check_enabled: false # https://github.com/apple/swift-collections/issues/431 format_check_enabled: false - # https://github.com/apple/swift-collections/issues/434 - license_header_check_enabled: false # https://github.com/apple/swift-collections/issues/435 api_breakage_check_enabled: false diff --git a/.license_header_template b/.license_header_template new file mode 100644 index 00000000..a72bed3b --- /dev/null +++ b/.license_header_template @@ -0,0 +1,12 @@ +@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the Swift Collections 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 +@@ +@@ SPDX-License-Identifier: Apache-2.0 WITH Swift-exception +@@ +@@===----------------------------------------------------------------------===@@ diff --git a/.licenseignore b/.licenseignore new file mode 100644 index 00000000..da1784eb --- /dev/null +++ b/.licenseignore @@ -0,0 +1,16 @@ +**/*.md +**/*.png +**/*.rs +**/*.sh +**/*.xcconfig +**/*.xcodeproj/* +**/*.xctestplan +**/*.xcworkspace/* +**/*.yml +**/Package.resolved +.editorconfig +Package.swift +Benchmarks/Package.swift +Package@swift-*.swift +CODEOWNERS +LICENSE.txt