From: Fred Morcos Date: Mon, 8 May 2023 12:30:48 +0000 (+0200) Subject: Don't fail when there are no warnings produced by clang-tidy X-Git-Tag: rec-4.9.0-beta1~29^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28deb0e583d75e6d740effec8e360c27f5c55af9;p=thirdparty%2Fpdns.git Don't fail when there are no warnings produced by clang-tidy --- diff --git a/.github/scripts/clang-tidy.py b/.github/scripts/clang-tidy.py index 85982e2079..856be887f6 100755 --- a/.github/scripts/clang-tidy.py +++ b/.github/scripts/clang-tidy.py @@ -39,6 +39,11 @@ def main(): compdb = helpers.index_compdb(compdb) fixes = helpers.load_fixes_file(args.fixes_file) + + if not fixes: + print("No diagnostics or warnings produced by clang-tidy") + return 0 + fixes = fixes["Diagnostics"] have_warnings = False for fix in fixes: