Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/scripts/check-license-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,16 @@ while IFS= read -r file_path; do
py) comment_marker='##'; header_prefix=$'#!/usr/bin/env python3\n' ;;
rb) comment_marker='##'; header_prefix=$'#!/usr/bin/env ruby\n' ;;
sh) comment_marker='##'; header_prefix=$'#!/bin/bash\n' ;;
strings) comment_marker='//' ;;
swift-format) continue ;; # .swift-format is JSON and doesn't support comments
swift) comment_marker='//' ;;
ts) comment_marker='//' ;;
tsx) comment_marker='//' ;;
txt) continue ;; # Text files don't need license headers
yml) continue ;; # YAML Configuration files don't need license headers
yaml) continue ;; # YAML Configuration files don't need license headers
xcbuildrules) comment_marker='//' ;;
xcspec) comment_marker='//' ;;
*)
error "Unsupported file extension ${file_extension} for file (exclude or update this script): ${file_path}"
paths_with_missing_license+=("${file_path} ")
Expand Down
Loading