aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-01-15 21:48:01 +0000
committerWarner Losh <imp@FreeBSD.org>2024-01-16 00:57:28 +0000
commit57623b3b745a2a89ea9b998cadf8cc8c02228fea (patch)
tree6855df04189d9cbc57be89d1d2bcae7a7357109b /tools
parent11500481c82c9fa6e7d3b9a707bd9ca1ed637c2d (diff)
downloadsrc-57623b3b745a2a89ea9b998cadf8cc8c02228fea.tar.gz
src-57623b3b745a2a89ea9b998cadf8cc8c02228fea.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build/checkstyle9.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/checkstyle9.pl b/tools/build/checkstyle9.pl
index 3b28fef93669..8b30baa10fc9 100755
--- a/tools/build/checkstyle9.pl
+++ b/tools/build/checkstyle9.pl
@@ -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);
}
}