From 8c2ffc49f48a2c96d09c71e1dbd5e7bc787d23ab Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Sun, 27 Apr 2025 22:42:24 -0700 Subject: [PATCH] Update check-license-header.sh to include support for strings, xcbuildrules, and xcspec file extensions. --- .github/workflows/scripts/check-license-header.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/scripts/check-license-header.sh b/.github/workflows/scripts/check-license-header.sh index c20ec051..845eb254 100755 --- a/.github/workflows/scripts/check-license-header.sh +++ b/.github/workflows/scripts/check-license-header.sh @@ -94,6 +94,7 @@ 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='//' ;; @@ -101,6 +102,8 @@ while IFS= read -r file_path; do 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} ")