mirror of
https://github.com/qemu/qemu.git
synced 2025-07-29 06:26:06 +00:00
scripts/checkpatch.pl: mandate SPDX tag for Rust src files
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
1bd4237cb1
commit
81941aa896
@ -1499,7 +1499,7 @@ sub process_end_of_file {
|
||||
if ($fileinfo->{action} eq "new" &&
|
||||
!exists $fileinfo->{facts}->{sawspdx}) {
|
||||
if ($fileinfo->{filenew} =~
|
||||
/(\.(c|h|py|pl|sh|json|inc)|Makefile.*)$/) {
|
||||
/(\.(c|h|py|pl|sh|json|inc|rs)|Makefile.*)$/) {
|
||||
# source code files MUST have SPDX license declared
|
||||
ERROR("New file '" . $fileinfo->{filenew} .
|
||||
"' requires 'SPDX-License-Identifier'");
|
||||
|
Loading…
Reference in New Issue
Block a user