diff options
author | Thomas Haller <thaller@redhat.com> | 2018-10-17 14:07:56 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-10-17 17:42:22 +0200 |
commit | d515bd186ec6b6e16e518f71dd1477018c7414ff (patch) | |
tree | e729ff04b3b529be9a9a85aa9d161770ab859c3d | |
parent | a217cbebf92aebf9a15c3dde6491813be2a7c6fa (diff) | |
download | NetworkManager-d515bd186ec6b6e16e518f71dd1477018c7414ff.tar.gz |
checkpatch: complain about Emacs file variables in source code
-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 d6b3c4451a..0769273bcb 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -132,6 +132,7 @@ complain ("Don't use \"$1 $2\" instead of \"$2 $1\"") if $line =~ /\b(char|short 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/; 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 =~ /-\*-.+-\*-/; new_hunk if $_ eq ''; my ($this_indent) = /^(\s*)/; |