This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a7260deb ci: Fix uncrustify crash
4a7260deb is described below

commit 4a7260deb85f32556a87078a4a4da4fb786bb18b
Author: Szymon Janc <[email protected]>
AuthorDate: Mon Apr 14 15:49:08 2025 +0200

    ci: Fix uncrustify crash
    
    *.ld.h files are used to pass linker scripts though C preprocessor and
    and not true C headers. Since those are causing uncrustify to crash
    lets just ignore them.
---
 .github/check_style.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/check_style.py b/.github/check_style.py
index c411fb218..4ce693cc6 100755
--- a/.github/check_style.py
+++ b/.github/check_style.py
@@ -83,6 +83,10 @@ def is_ignored(fname: str, ign_dirs: list[str]) -> bool:
     if not re.search(r"\.(c|cpp|h|hpp)$", fname):
         return True
 
+    # Those are linker scripts not C headers.
+    if re.search(r"\.(ld\.h)$", fname):
+        return True
+
     for d in ign_dirs:
         if fname.startswith(d):
             return True

Reply via email to