mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +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
|
# check for spaces before a quoted newline
|
||||||
if ($rawline =~ /^.*\".*\s\\n/) {
|
if ($rawline =~ /^.*\".*\s\\n/) {
|
||||||
ERROR("unnecessary whitespace before a quoted newline\n" . $herecurr);
|
ERROR("unnecessary whitespace before a quoted newline\n" . $herecurr);
|
||||||
|
|
Loading…
Reference in a new issue