diff --git a/scripts/clang-format.ignore b/scripts/clang-format.ignore index c43ec0c..024f26b 100644 --- a/scripts/clang-format.ignore +++ b/scripts/clang-format.ignore @@ -1 +1,2 @@ -# Patterns for clang-format to ignore. \ No newline at end of file +# Patterns for clang-format to ignore. +**/test \ No newline at end of file diff --git a/scripts/clang_format_report.py b/scripts/clang_format_report.py index 88cf5c9..a692d02 100755 --- a/scripts/clang_format_report.py +++ b/scripts/clang_format_report.py @@ -54,6 +54,7 @@ def run(base_commit, ignore_config, step: Optional[Step], report: Optional[Repor ignore_lines = [] if ignore_config is not None and os.path.exists(ignore_config): ignore_lines = open(ignore_config, 'r').readlines() + logging.debug("ignore patterns: " + str(';'.join(ignore_lines))) ignore = pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, ignore_lines) patched_file: unidiff.PatchedFile success = True