git: 6bad7d2486b3 - main - checkstyle9.pl: Add check for missing space between ) {
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 May 2024 16:00:23 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=6bad7d2486b373015db5917d7a9641266861c607
commit 6bad7d2486b373015db5917d7a9641266861c607
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-29 15:59:27 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-29 15:59:27 +0000
checkstyle9.pl: Add check for missing space between ) {
Sponsored by: Netflix
---
tools/build/checkstyle9.pl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/build/checkstyle9.pl b/tools/build/checkstyle9.pl
index 24e33712ceda..7c2b2c0f5b5b 100755
--- a/tools/build/checkstyle9.pl
+++ b/tools/build/checkstyle9.pl
@@ -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);