]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't fail when there are no warnings produced by clang-tidy
authorFred Morcos <fred.morcos@open-xchange.com>
Mon, 8 May 2023 12:30:48 +0000 (14:30 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Tue, 9 May 2023 07:16:12 +0000 (09:16 +0200)
.github/scripts/clang-tidy.py

index 85982e207906593d63cf54ccdc25e9ebe88be4bf..856be887f67c187582be0fc1302523afb9ca71b3 100755 (executable)
@@ -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: