MCPcopy Create free account
hub / github.com/DevCloudNinjas/DevOps-Projects / main

Function main

tools/quality_gate.py:423–431  ·  view source on GitHub ↗
(argv: list[str] | None = None)

Source from the content-addressed store, hash-verified

421
422
423def main(argv: list[str] | None = None) -> int:
424 args = build_parser().parse_args(argv)
425 try:
426 findings = QualityGate(args.repo_root, project_path=args.project).run()
427 except ValueError as exc:
428 print(f"Quality gate failed: {exc}")
429 return 1
430 _print_report(findings)
431 return 1 if findings else 0
432
433
434if __name__ == "__main__":

Callers 1

quality_gate.pyFile · 0.70

Calls 4

QualityGateClass · 0.85
_print_reportFunction · 0.85
build_parserFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected