Fix #683 - enable SPDX linter checks (#1578)

* Fix #683 - enable SPDX linter checks
* Add license to the last remaining file
This commit is contained in:
Anton Kochkov 2021-09-03 00:54:40 +08:00 committed by GitHub
parent c077653575
commit aacd6421e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -124,10 +124,8 @@ jobs:
licenses:
runs-on: ubuntu-20.04
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1.1
continue-on-error: true

View file

@ -1,4 +1,8 @@
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2021 ret2libc <sirmy15@gmail.com>
# SPDX-License-Identifier: LGPL-3.0-only
import sys
TEMPLATE = '''/*
@ -39,4 +43,4 @@ defines = [l for l in open(zip_h, 'r').read().split('\n') if l.startswith('#defi
zip_err_strs = '\n'.join(['"' + def2errstr(x) + '",' for x in defines])
zip_err_types = '\n'.join([def2errtype(x) + ',' for x in defines])
open(zip_err_str_c, 'w').write(TEMPLATE.format(zip_err_strs=zip_err_strs, zip_err_types=zip_err_types))
open(zip_err_str_c, 'w').write(TEMPLATE.format(zip_err_strs=zip_err_strs, zip_err_types=zip_err_types))