1
0
Fork 0

Merge pull request #219 from google/ignore-tests-format

ignore **/test for clang-format
This commit is contained in:
Mikhail Goncharov 2020-07-22 19:34:34 +02:00 committed by GitHub
commit 00a2c76d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1,2 @@
# Patterns for clang-format to ignore.
# 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