From b3a009f5215411ed496e411ffa946dffda5379c6 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Mon, 9 Sep 2024 20:58:34 -0600 Subject: [PATCH] Meta: Check more file extensions for newlines at EOF --- Meta/CMake/Swift/InitializeSwift.cmake | 1 - Meta/CMake/patches/git-patch.cmake | 1 - Meta/check-newlines-at-eof.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Meta/CMake/Swift/InitializeSwift.cmake b/Meta/CMake/Swift/InitializeSwift.cmake index 3f8f92e3e4e..beda42c526c 100644 --- a/Meta/CMake/Swift/InitializeSwift.cmake +++ b/Meta/CMake/Swift/InitializeSwift.cmake @@ -96,4 +96,3 @@ function(_setup_swift_paths) endfunction() _setup_swift_paths() - diff --git a/Meta/CMake/patches/git-patch.cmake b/Meta/CMake/patches/git-patch.cmake index e62e8248d44..9b6a850600f 100644 --- a/Meta/CMake/patches/git-patch.cmake +++ b/Meta/CMake/patches/git-patch.cmake @@ -11,4 +11,3 @@ if(patch_not_yet_applied) COMMAND ${GIT_EXECUTABLE} apply ${CMAKE_ARGV3} COMMAND_ERROR_IS_FATAL LAST ) endif() - diff --git a/Meta/check-newlines-at-eof.py b/Meta/check-newlines-at-eof.py index 3f6960807fd..d4debe798c0 100755 --- a/Meta/check-newlines-at-eof.py +++ b/Meta/check-newlines-at-eof.py @@ -6,7 +6,7 @@ import subprocess import sys -RE_RELEVANT_FILE_EXTENSION = re.compile('\\.(cpp|h|gml|html|js|css|sh|py|json|txt)$') +RE_RELEVANT_FILE_EXTENSION = re.compile('\\.(cpp|h|mm|swift|gml|html|js|css|sh|py|json|txt|cmake|gn|gni)$') def should_check_file(filename):