]> git.ipfire.org Git - thirdparty/qemu.git/commit
scripts/checkpatch: reimplement mandate for SPDX-License-Identifier
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 8 May 2025 16:43:40 +0000 (17:43 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 22 May 2025 10:24:41 +0000 (11:24 +0100)
commitb36934063c5550a3fcb1b36027fd1a509142e4f9
treed41542316a5a1ecf1d759277b93ec212c10a1bfc
parent1d745e6d96353af20f116672b87ae28b0d07eca9
scripts/checkpatch: reimplement mandate for SPDX-License-Identifier

Going forward we want all newly created source files to have an
SPDX-License-Identifier tag present.

Initially mandate this for C, Python, Perl, Shell source files,
as well as JSON (QAPI) and Makefiles, while encouraging users
to consider it for other file types.

The new attempt at detecting missing SPDX-License-Identifier relies
on the hooks for relying triggering logic at the end of scanning a
new file in the diff.

Tested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/checkpatch.pl