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

Function check_sha1

src/formattedcode/output_spdx.py:168–178  ·  view source on GitHub ↗
(codebase)

Source from the content-addressed store, hash-verified

166
167
168def check_sha1(codebase):
169 has_sha1 = hasattr(codebase.root, 'sha1')
170 if not has_sha1:
171 import click
172
173 click.secho(
174 'WARNING: Files are missing a SHA1 attribute. '
175 'Incomplete SPDX document created.',
176 err=True,
177 fg='red',
178 )
179
180
181def write_spdx(

Callers 1

_process_codebaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected