Skip to content

Commit 883d308

Browse files
authored
Merge pull request #53 from ahoppen/license-header-update
Update license headers template to also support Swift comments
2 parents d5b070f + c47c0c3 commit 883d308

8 files changed

+26
-26
lines changed

.github/workflows/scripts/check-broken-symlinks.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
## ===----------------------------------------------------------------------===##
2+
##===----------------------------------------------------------------------===##
33
##
44
## This source file is part of the Swift.org open source project
55
##
@@ -9,7 +9,7 @@
99
## See https://swift.org/LICENSE.txt for license information
1010
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111
##
12-
## ===----------------------------------------------------------------------===##
12+
##===----------------------------------------------------------------------===##
1313

1414
set -euo pipefail
1515

.github/workflows/scripts/check-docs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
## ===----------------------------------------------------------------------===##
2+
##===----------------------------------------------------------------------===##
33
##
44
## This source file is part of the Swift.org open source project
55
##
@@ -9,7 +9,7 @@
99
## See https://swift.org/LICENSE.txt for license information
1010
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111
##
12-
## ===----------------------------------------------------------------------===##
12+
##===----------------------------------------------------------------------===##
1313

1414
set -euo pipefail
1515

.github/workflows/scripts/check-license-header.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
## ===----------------------------------------------------------------------===##
2+
##===----------------------------------------------------------------------===##
33
##
44
## This source file is part of the Swift.org open source project
55
##
@@ -9,7 +9,7 @@
99
## See https://swift.org/LICENSE.txt for license information
1010
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111
##
12-
## ===----------------------------------------------------------------------===##
12+
##===----------------------------------------------------------------------===##
1313

1414
set -euo pipefail
1515

.github/workflows/scripts/check-swift-format.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
## ===----------------------------------------------------------------------===##
2+
##===----------------------------------------------------------------------===##
33
##
44
## This source file is part of the Swift.org open source project
55
##
@@ -9,7 +9,7 @@
99
## See https://swift.org/LICENSE.txt for license information
1010
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111
##
12-
## ===----------------------------------------------------------------------===##
12+
##===----------------------------------------------------------------------===##
1313

1414
set -euo pipefail
1515

.github/workflows/scripts/check-unacceptable-language.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
## ===----------------------------------------------------------------------===##
2+
##===----------------------------------------------------------------------===##
33
##
44
## This source file is part of the Swift.org open source project
55
##
@@ -9,7 +9,7 @@
99
## See https://swift.org/LICENSE.txt for license information
1010
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111
##
12-
## ===----------------------------------------------------------------------===##
12+
##===----------------------------------------------------------------------===##
1313

1414
set -euo pipefail
1515

@@ -36,4 +36,4 @@ ${unacceptable_language_lines}
3636
fi
3737

3838

39-
log "✅ Found no unacceptable language."
39+
log "✅ Found no unacceptable language."

.license_header_template

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
## ===----------------------------------------------------------------------===##
2-
##
3-
## This source file is part of the Swift.org open source project
4-
##
5-
## Copyright (c) YEARS Apple Inc. and the Swift project authors
6-
## Licensed under Apache License v2.0 with Runtime Library Exception
7-
##
8-
## See https://swift.org/LICENSE.txt for license information
9-
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10-
##
11-
## ===----------------------------------------------------------------------===##
1+
@@===----------------------------------------------------------------------===@@
2+
@@
3+
@@ This source file is part of the Swift.org open source project
4+
@@
5+
@@ Copyright (c) YEARS Apple Inc. and the Swift project authors
6+
@@ Licensed under Apache License v2.0 with Runtime Library Exception
7+
@@
8+
@@ See https://swift.org/LICENSE.txt for license information
9+
@@ See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
@@
11+
@@===----------------------------------------------------------------------===@@

tests/test.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## ===----------------------------------------------------------------------===##
1+
##===----------------------------------------------------------------------===##
22
##
33
## This source file is part of the Swift.org open source project
44
##
@@ -8,4 +8,4 @@
88
## See https://swift.org/LICENSE.txt for license information
99
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
##
11-
## ===----------------------------------------------------------------------===##
11+
##===----------------------------------------------------------------------===##

tests/test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
## ===----------------------------------------------------------------------===##
2+
##===----------------------------------------------------------------------===##
33
##
44
## This source file is part of the Swift.org open source project
55
##
@@ -9,4 +9,4 @@
99
## See https://swift.org/LICENSE.txt for license information
1010
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1111
##
12-
## ===----------------------------------------------------------------------===##
12+
##===----------------------------------------------------------------------===##

0 commit comments

Comments
 (0)