Skip to content

Commit

Permalink
Merge pull request #53 from ahoppen/license-header-update
Browse files Browse the repository at this point in the history
Update license headers template to also support Swift comments
  • Loading branch information
ahoppen authored Oct 29, 2024
2 parents d5b070f + c47c0c3 commit 883d308
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
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
##
## ===----------------------------------------------------------------------===##
##===----------------------------------------------------------------------===##

0 comments on commit 883d308

Please sign in to comment.