1
0
Fork 0

ignore **/test for clang-format

This commit is contained in:
Mikhail Goncharov 2020-07-22 18:59:47 +02:00
parent 82d0ae033b
commit 5362bc52a3
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1,2 @@
# Patterns for clang-format to ignore.
**/test

View file

@ -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