(codebase)
| 166 | |
| 167 | |
| 168 | def 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 | |
| 181 | def write_spdx( |