1
0
Fork 0

ignore successfull 4 byte clang tidy report

This commit is contained in:
Mikhail Goncharov 2020-02-07 08:16:35 +01:00
parent 490939a4b7
commit 6012e873b5

View file

@ -291,7 +291,7 @@ class BuildReport:
self.comments.append(section_title('clang-tidy', False, False))
return
p = os.path.join(self.results_dir, self.clang_tidy_result)
if os.stat(p).st_size != 0:
if os.stat(p).st_size > 4:
self.api.add_artifact(self.ph_id, self.clang_tidy_result, "clang-tidy", self.results_url)
ignore = pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern,
open(self.clang_tidy_ignore, 'r').readlines())