Skip to content

Commit 4359c23

Browse files
authored
Merge pull request #121 from swiftlang/shahmishal-patch-1
Update check-license-header.sh to include support for strings, xcbuil…
2 parents 7b27197 + 8c2ffc4 commit 4359c23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,16 @@ while IFS= read -r file_path; do
9494
py) comment_marker='##'; header_prefix=$'#!/usr/bin/env python3\n' ;;
9595
rb) comment_marker='##'; header_prefix=$'#!/usr/bin/env ruby\n' ;;
9696
sh) comment_marker='##'; header_prefix=$'#!/bin/bash\n' ;;
97+
strings) comment_marker='//' ;;
9798
swift-format) continue ;; # .swift-format is JSON and doesn't support comments
9899
swift) comment_marker='//' ;;
99100
ts) comment_marker='//' ;;
100101
tsx) comment_marker='//' ;;
101102
txt) continue ;; # Text files don't need license headers
102103
yml) continue ;; # YAML Configuration files don't need license headers
103104
yaml) continue ;; # YAML Configuration files don't need license headers
105+
xcbuildrules) comment_marker='//' ;;
106+
xcspec) comment_marker='//' ;;
104107
*)
105108
error "Unsupported file extension ${file_extension} for file (exclude or update this script): ${file_path}"
106109
paths_with_missing_license+=("${file_path} ")

0 commit comments

Comments
 (0)