Skip to content

Update license headers template to also support Swift comments #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/scripts/check-broken-symlinks.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/check-docs.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/check-license-header.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/check-swift-format.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scripts/check-unacceptable-language.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
Expand All @@ -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

Expand All @@ -36,4 +36,4 @@ ${unacceptable_language_lines}
fi


log "✅ Found no unacceptable language."
log "✅ Found no unacceptable language."
22 changes: 11 additions & 11 deletions .license_header_template
Original file line number Diff line number Diff line change
@@ -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
@@
@@===----------------------------------------------------------------------===@@
4 changes: 2 additions & 2 deletions tests/test.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
Expand All @@ -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
##
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##
##
## This source file is part of the Swift.org open source project
##
Expand All @@ -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
##
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##