* Fix #683 - enable SPDX linter checks * Add license to the last remaining file
This commit is contained in:
parent
c077653575
commit
aacd6421e6
2 changed files with 5 additions and 3 deletions
2
.github/workflows/linter.yml
vendored
2
.github/workflows/linter.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue