Remove empty lines at the end of clang-tidy report
This commit is contained in:
parent
63ad2d1be6
commit
c1396546e5
2 changed files with 2 additions and 2 deletions
|
@ -32,6 +32,6 @@ set -e
|
|||
git checkout -- .
|
||||
|
||||
# clang-tidy
|
||||
git diff -U0 HEAD | "${SCRIPT_DIR}/ignore_diff.py" "${SCRIPT_DIR}/clang-tidy.ignore" | clang-tidy-diff -p1 -quiet > "${TARGET_DIR}"/clang-tidy.txt
|
||||
git diff -U0 HEAD | "${SCRIPT_DIR}/ignore_diff.py" "${SCRIPT_DIR}/clang-tidy.ignore" | clang-tidy-diff -p1 -quiet | sed '${/^[[:space:]]*$/d;}' > "${TARGET_DIR}"/clang-tidy.txt
|
||||
|
||||
echo "linters completed ======================================"
|
||||
|
|
|
@ -323,7 +323,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 > 4:
|
||||
if os.stat(p).st_size > 0:
|
||||
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())
|
||||
|
|
Loading…
Add table
Reference in a new issue