diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-07-11 11:32:11 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-07-11 12:02:06 +0200 |
commit | 2b152a69c4d2c24418b73958b332361dea249f81 (patch) | |
tree | aa9b597a344ecc9bc3d146d64ab15252e48b70d6 | |
parent | 26910ebdd79557aea75a6a6357e0a6ec577091d1 (diff) | |
download | NetworkManager-2b152a69c4d2c24418b73958b332361dea249f81.tar.gz |
checkpatch: add a licensing hint
-rwxr-xr-x | contrib/scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index baca2371c5..f9ad95dda0 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -124,6 +124,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 LGPL2+ for new files") if $is_patch and $line =~ /under the terms of the GNU General Public License/; # Further on we process stuff without comments. $_ = $line; |