CLI/CI Software License check
Verifies that files include SPDX license headers
Check file extensions have the allowed/acceptable SPDX headers for them.
C source: // SPDX-License-Identifier: <SPDX License Expression>
C header: /* SPDX-License-Identifier: <SPDX License Expression> */
ASM: /* SPDX-License-Identifier: <SPDX License Expression> */
scripts: # SPDX-License-Identifier: <SPDX License Expression>
.rst: .. SPDX-License-Identifier: <SPDX License Expression>
.dts{i}: // SPDX-License-Identifier: <SPDX License Expression>
Provide a dictionary, with file types as the keys and a list of accepted licenses as the values.
{
"sol": ["MIT", "BSD-3"],
"py": ["ISC"]
}
/_SPDX-License-Identifier: Apache-2.0
SPDXVersion: SPDX-2.2
SPDX-FileCopyrightText: Copyright 2020 <Licensor>_/
// SPDX-License-Identifier: Apache-2.0
// SPDXVersion: SPDX-2.2
// SPDX-FileCopyrightText: Copyright 2020 <Licensor>
# SPDX-License-Identifier: Apache-2.0
# SPDXVersion: SPDX-2.2
# SPDX-FileCopyrightText: Copyright 2020 <Licensor>
<!-- SPDX-License-Identifier: Apache-2.0 -->
<!-- SPDXVersion: SPDX-2.2 -->
<!-- SPDX-FileCopyrightText: Copyright 2020 <Licensor> -->
SPDX-License-Identifier: Apache-2.0