Merge pull request #219 from google/ignore-tests-format
ignore **/test for clang-format
This commit is contained in:
commit
00a2c76d0b
2 changed files with 3 additions and 1 deletions
|
@ -1 +1,2 @@
|
||||||
# Patterns for clang-format to ignore.
|
# Patterns for clang-format to ignore.
|
||||||
|
**/test
|
|
@ -54,6 +54,7 @@ def run(base_commit, ignore_config, step: Optional[Step], report: Optional[Repor
|
||||||
ignore_lines = []
|
ignore_lines = []
|
||||||
if ignore_config is not None and os.path.exists(ignore_config):
|
if ignore_config is not None and os.path.exists(ignore_config):
|
||||||
ignore_lines = open(ignore_config, 'r').readlines()
|
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)
|
ignore = pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, ignore_lines)
|
||||||
patched_file: unidiff.PatchedFile
|
patched_file: unidiff.PatchedFile
|
||||||
success = True
|
success = True
|
||||||
|
|
Loading…
Reference in a new issue