Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2024 16:00:23 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6bad7d2486b3 - main - checkstyle9.pl: Add check for missing space between ) {
Message-ID:  <202405291600.44TG0N8r042852@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405291600.44TG0N8r042852>