From c47c0c35fa6e7b41555e04be1ceb5c8afb00bbd6 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Mon, 28 Oct 2024 19:16:51 -0700 Subject: [PATCH] Update license headers template to also support Swift comments --- .../scripts/check-broken-symlinks.sh | 4 ++-- .github/workflows/scripts/check-docs.sh | 4 ++-- .../workflows/scripts/check-license-header.sh | 4 ++-- .../workflows/scripts/check-swift-format.sh | 4 ++-- .../scripts/check-unacceptable-language.sh | 6 ++--- .license_header_template | 22 +++++++++---------- tests/test.ps1 | 4 ++-- tests/test.py | 4 ++-- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/scripts/check-broken-symlinks.sh b/.github/workflows/scripts/check-broken-symlinks.sh index e099f53..570cbdb 100755 --- a/.github/workflows/scripts/check-broken-symlinks.sh +++ b/.github/workflows/scripts/check-broken-symlinks.sh @@ -1,5 +1,5 @@ #!/bin/bash -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## ## ## This source file is part of the Swift.org open source project ## @@ -9,7 +9,7 @@ ## See https://swift.org/LICENSE.txt for license information ## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors ## -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## set -euo pipefail diff --git a/.github/workflows/scripts/check-docs.sh b/.github/workflows/scripts/check-docs.sh index a1d6516..2b40105 100755 --- a/.github/workflows/scripts/check-docs.sh +++ b/.github/workflows/scripts/check-docs.sh @@ -1,5 +1,5 @@ #!/bin/bash -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## ## ## This source file is part of the Swift.org open source project ## @@ -9,7 +9,7 @@ ## See https://swift.org/LICENSE.txt for license information ## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors ## -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## set -euo pipefail diff --git a/.github/workflows/scripts/check-license-header.sh b/.github/workflows/scripts/check-license-header.sh index 7b1ad56..a14f299 100755 --- a/.github/workflows/scripts/check-license-header.sh +++ b/.github/workflows/scripts/check-license-header.sh @@ -1,5 +1,5 @@ #!/bin/bash -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## ## ## This source file is part of the Swift.org open source project ## @@ -9,7 +9,7 @@ ## See https://swift.org/LICENSE.txt for license information ## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors ## -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## set -euo pipefail diff --git a/.github/workflows/scripts/check-swift-format.sh b/.github/workflows/scripts/check-swift-format.sh index 706669c..a3c3221 100755 --- a/.github/workflows/scripts/check-swift-format.sh +++ b/.github/workflows/scripts/check-swift-format.sh @@ -1,5 +1,5 @@ #!/bin/bash -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## ## ## This source file is part of the Swift.org open source project ## @@ -9,7 +9,7 @@ ## See https://swift.org/LICENSE.txt for license information ## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors ## -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## set -euo pipefail diff --git a/.github/workflows/scripts/check-unacceptable-language.sh b/.github/workflows/scripts/check-unacceptable-language.sh index 93cc034..e697673 100755 --- a/.github/workflows/scripts/check-unacceptable-language.sh +++ b/.github/workflows/scripts/check-unacceptable-language.sh @@ -1,5 +1,5 @@ #!/bin/bash -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## ## ## This source file is part of the Swift.org open source project ## @@ -9,7 +9,7 @@ ## See https://swift.org/LICENSE.txt for license information ## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors ## -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## set -euo pipefail @@ -36,4 +36,4 @@ ${unacceptable_language_lines} fi -log "✅ Found no unacceptable language." \ No newline at end of file +log "✅ Found no unacceptable language." diff --git a/.license_header_template b/.license_header_template index fc0659e..309ac5a 100644 --- a/.license_header_template +++ b/.license_header_template @@ -1,11 +1,11 @@ -## ===----------------------------------------------------------------------===## -## -## This source file is part of the Swift.org 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 -## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors -## -## ===----------------------------------------------------------------------===## +@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the Swift.org 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 +@@ See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +@@ +@@===----------------------------------------------------------------------===@@ diff --git a/tests/test.ps1 b/tests/test.ps1 index 1f6cd92..bea258d 100644 --- a/tests/test.ps1 +++ b/tests/test.ps1 @@ -1,4 +1,4 @@ -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## ## ## This source file is part of the Swift.org open source project ## @@ -8,4 +8,4 @@ ## See https://swift.org/LICENSE.txt for license information ## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors ## -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## diff --git a/tests/test.py b/tests/test.py index 38dc103..7c4470b 100644 --- a/tests/test.py +++ b/tests/test.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===## ## ## This source file is part of the Swift.org open source project ## @@ -9,4 +9,4 @@ ## See https://swift.org/LICENSE.txt for license information ## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors ## -## ===----------------------------------------------------------------------===## +##===----------------------------------------------------------------------===##