MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / display_summary

Function display_summary

src/scancode/cli.py:1493–1503  ·  view source on GitHub ↗

Display a scan summary.

(codebase, scan_names, processes, errors, echo_func=echo_stderr)

Source from the content-addressed store, hash-verified

1491
1492
1493def display_summary(codebase, scan_names, processes, errors, echo_func=echo_stderr):
1494 """
1495 Display a scan summary.
1496 """
1497 error_messages, summary_messages = get_displayable_summary(
1498 codebase, scan_names, processes, errors)
1499 for msg in error_messages:
1500 echo_func(msg, fg='red')
1501
1502 for msg in summary_messages:
1503 echo_func(msg)
1504
1505
1506def get_displayable_summary(codebase, scan_names, processes, errors):

Calls 2

get_displayable_summaryFunction · 0.85
echo_funcFunction · 0.85