diff options
| author | Thomas Haller <thaller@redhat.com> | 2018-08-09 16:43:10 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2018-08-09 17:07:23 +0200 |
| commit | cf02b9c5df7ca4ea237d6c92bd975d8f3f98a4a1 (patch) | |
| tree | d8f6f315d7e558940c54954dbda4ed1821499df6 /contrib | |
| parent | 852abf3d3d37e2a21623b575b89cc005d68ee2e8 (diff) | |
| download | NetworkManager-cf02b9c5df7ca4ea237d6c92bd975d8f3f98a4a1.tar.gz | |
checkpatch.pl: complain about space in elvis operator ?:
Diffstat (limited to 'contrib')
| -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 6ef8b25594..f06ac7fc05 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -129,6 +129,7 @@ complain ('Don\'t use glib typedefs for char/short/int/long/float/double') if $l 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/; +complain ("Don't use space inside elvis operator ?:") if $line =~ /\?[\t ]+:/; # Further on we process stuff without comments. $_ = $line; |
