(
spdx_plugin,
codebase,
input_path,
output_file,
as_tagvalue=True,
**kwargs,
)
| 124 | |
| 125 | |
| 126 | def _process_codebase( |
| 127 | spdx_plugin, |
| 128 | codebase, |
| 129 | input_path, |
| 130 | output_file, |
| 131 | as_tagvalue=True, |
| 132 | **kwargs, |
| 133 | ): |
| 134 | check_sha1(codebase) |
| 135 | files = spdx_plugin.get_files(codebase, **kwargs) |
| 136 | header = codebase.get_or_create_current_header() |
| 137 | tool_name = header.tool_name |
| 138 | tool_version = header.tool_version |
| 139 | notice = header.notice |
| 140 | package_name = build_package_name(input_path) |
| 141 | |
| 142 | write_spdx( |
| 143 | codebase=codebase, |
| 144 | output_file=output_file, |
| 145 | files=files, |
| 146 | tool_name=tool_name, |
| 147 | tool_version=tool_version, |
| 148 | notice=notice, |
| 149 | package_name=package_name, |
| 150 | as_tagvalue=as_tagvalue, |
| 151 | ) |
| 152 | |
| 153 | |
| 154 | def build_package_name(input_path): |
no test coverage detected