mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 00:22:48 +00:00
checkstyle9.pl: Soften the single line braces requirement
We inherited the error for single line statements needing braces from the original script. Style(9) allow that, and could be read to encourage that, but does not require that. Sponsored by: Netflix
This commit is contained in:
parent
11500481c8
commit
57623b3b74
@ -2546,7 +2546,7 @@ sub process {
|
||||
$herectx .= raw_line($linenr, $n) . "\n";;
|
||||
}
|
||||
|
||||
ERROR("braces {} are necessary even for single statement blocks\n" . $herectx);
|
||||
WARN("braces {} are encouraged even for single statement blocks\n" . $herectx);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user