History

checkpatch: warn on space before semicolon

Make space before semicolon a warning instead of a --strict CHK test.

Joe Perches committed 13 years ago

Commit 5646bc71 parent 04db4d21 file · +2 −2Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+2−2
@@ -2522,8 +2522,8 @@ sub process { · 2521 unmodified lines
2522 2522
2523# check for whitespace before a non-naked semicolon2523# check for whitespace before a non-naked semicolon
2524 if ($line =~ /^\+.*\S\s+;/) {2524 if ($line =~ /^\+.*\S\s+;/) {
2525 CHK("SPACING",2525 WARN("SPACING",
2526 "space prohibited before semicolon\n" . $herecurr);2526 "space prohibited before semicolon\n" . $herecurr);
2527 }2527 }
2528 2528
2529# Check operator spacing.2529# Check operator spacing.