mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 11:53:53 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -1499,7 +1499,7 @@ sub process_end_of_file {
|
||||||
if ($fileinfo->{action} eq "new" &&
|
if ($fileinfo->{action} eq "new" &&
|
||||||
!exists $fileinfo->{facts}->{sawspdx}) {
|
!exists $fileinfo->{facts}->{sawspdx}) {
|
||||||
if ($fileinfo->{filenew} =~
|
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
|
# source code files MUST have SPDX license declared
|
||||||
ERROR("New file '" . $fileinfo->{filenew} .
|
ERROR("New file '" . $fileinfo->{filenew} .
|
||||||
"' requires 'SPDX-License-Identifier'");
|
"' requires 'SPDX-License-Identifier'");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue