checkstyle9.pl: Add check for missing space between ) {

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-05-29 09:59:27 -06:00
parent c48820a448
commit 6bad7d2486

View File

@ -1556,6 +1556,11 @@ sub process {
}
}
# Check for ){
if ($rawline =~ /^.*\)\{\n/) {
ERROR("Missing space before brace\n". $herecurr);
}
# check for spaces before a quoted newline
if ($rawline =~ /^.*\".*\s\\n/) {
ERROR("unnecessary whitespace before a quoted newline\n" . $herecurr);