Skip to content

Commit c188fe5

Browse files
authored
Support kt and toml files in the license check (#231)
These are often use in Gradle build script development
1 parent a5ed4ea commit c188fe5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ while IFS= read -r file_path; do
8585
json) continue ;; # JSON doesn't support line comments
8686
jsx) comment_marker='//' ;;
8787
kts) comment_marker='//' ;;
88+
kt) comment_marker='//' ;;
8889
md) continue ;; # Text files don't need license headers
8990
mobileconfig) continue ;; # Doesn't support comments
9091
modulemap) continue ;; # Configuration file doesn't need a license header
@@ -98,6 +99,7 @@ while IFS= read -r file_path; do
9899
strings) comment_marker='//' ;;
99100
swift-format) continue ;; # .swift-format is JSON and doesn't support comments
100101
swift) comment_marker='//' ;;
102+
toml) comment_marker='##' ;;
101103
ts) comment_marker='//' ;;
102104
tsx) comment_marker='//' ;;
103105
txt) continue ;; # Text files don't need license headers

0 commit comments

Comments
 (0)