Commit cd78f119 authored by Clement Bois's avatar Clement Bois
Browse files

fix: valid report on no CI component

parent daa4b8ce
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1236,9 +1236,13 @@ def run():
        "=============================================================", file=sys.stderr
    )
    if not kicker.get("is_component"):
        # print(
        #     f"{AnsiColors.HGRAY}✕ this project is not a CI/CD component: skip{AnsiColors.RESET}"
        # )
        print(
            f"{AnsiColors.HGRAY}✕ this project is not a CI/CD component: skip{AnsiColors.RESET}", file=sys.stderr
        )
        # write empty output
        if args.output:
            json.dump([], fp=args.output)
            args.output.close()
        return

    # Check main template