History

checkpatch: change blank line after declaration type to "LINE_SPACING"

Make it consistent with the other missing or multiple blank line tests.

Joe Perches committed 12 years ago

Commit fee0aa81 parent 365dd4e1 file · +1 −1Browse files

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

Unified · Split

scripts/checkpatch.pl+1−1
@@ -2353,7 +2353,7 @@ sub process { · 2352 unmodified lines
2353 $sline =~ /^\+\s+\(?\s*(?:$Compare|$Assignment|$Operators)/) &&2353 $sline =~ /^\+\s+\(?\s*(?:$Compare|$Assignment|$Operators)/) &&
2354 # indentation of previous and current line are the same2354 # indentation of previous and current line are the same
2355 (($prevline =~ /\+(\s+)\S/) && $sline =~ /^\+$1\S/)) {2355 (($prevline =~ /\+(\s+)\S/) && $sline =~ /^\+$1\S/)) {
2356 WARN("SPACING",2356 WARN("LINE_SPACING",
2357 "Missing a blank line after declarations\n" . $hereprev);2357 "Missing a blank line after declarations\n" . $hereprev);
2358 }2358 }
2359 2359