diff options
author | Thomas Haller <thaller@redhat.com> | 2020-12-23 22:34:16 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-12-24 11:05:29 +0100 |
commit | 9bde2aa9cae582067dbeb006ab264a41e66e2699 (patch) | |
tree | 2aefa1cd2d48a4102ac4b352a27154bdc5df3c83 | |
parent | 809f87cee9515c6a4e47821c72ac3315ba6f3848 (diff) | |
download | NetworkManager-th/spdx-or-later.tar.gz |
checkpatch: update check for SPDX license identifier tagth/spdx-or-later
-rwxr-xr-x | contrib/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index ef2fda3423..805b7075ce 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -182,7 +182,7 @@ complain ('Trailing whitespace') if $line =~ /[ \t]$/; complain ('Don\'t use glib typedefs for char/short/int/long/float/double') if $line =~ /\bg(char|short|int|long|float|double)\b/; complain ("Don't use \"$1 $2\" instead of \"$2 $1\"") if $line =~ /\b(char|short|int|long) +(unsigned|signed)\b/; complain ("Don't use \"unsigned int\" but just use \"unsigned\"") if $line =~ /\b(unsigned) +(int)\b/; -complain ("Please use LGPL-2.1+ SPDX tag for new files") if $is_patch and $line =~ /SPDX-License-Identifier/ and not /LGPL-2.1\+/; +complain ("Please use LGPL-2.1-or-later SPDX tag for new files") if $is_patch and $line =~ /SPDX-License-Identifier/ and not /LGPL-2.1-or-later/; complain ("Use a SPDX-License-Identifier instead of Licensing boilerplate") if $is_patch and $line =~ /under the terms of/; complain ("Don't use space inside elvis operator ?:") if $line =~ /\?[\t ]+:/; complain ("Don't add Emacs editor formatting hints to source files") if $line_no == 1 and $line =~ /-\*-.+-\*-/; |