mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 10:08:05 +02:00
checkpatch: complain about Emacs file variables in source code
This commit is contained in:
parent
2af1dc1d28
commit
8221f824f3
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ("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 ("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 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 '';
|
new_hunk if $_ eq '';
|
||||||
my ($this_indent) = /^(\s*)/;
|
my ($this_indent) = /^(\s*)/;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue