From 7c4fafa900905e90869ec3c2764df8c8815e842e Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Thu, 6 Apr 2017 23:10:51 +1000
Subject: [PATCH] Skip hidden files

---
 check_source/check_style_c.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/check_source/check_style_c.py b/check_source/check_style_c.py
index 0e6580a..f115ce4 100755
--- a/check_source/check_style_c.py
+++ b/check_source/check_style_c.py
@@ -1374,6 +1374,9 @@ def scan_source_recursive(dirpath, args):
                     yield filepath
 
     def is_source(filename):
+        # skip temp files
+        if filename.startswith("."):
+            return False
         ext = splitext(filename)[1]
         return (ext in {".c", ".inl", ".cpp", ".cxx", ".cc", ".hpp", ".hxx", ".h", ".hh", ".osl"})
 
-- 
GitLab