mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-08 20:26:31 +00:00
checkstyle9.pl: Add check for missing space between ) {
Sponsored by: Netflix
This commit is contained in:
parent
c48820a448
commit
6bad7d2486
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user