From nobody Wed May 29 16:00:23 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VqDcR6Bxpz5Mljk; Wed, 29 May 2024 16:00:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VqDcR5lk5z4dQk; Wed, 29 May 2024 16:00:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716998423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OFqjIMyxgJrSTfOvy0iwIIjQrLd4GcmWGd2Cs0x0LGs=; b=BEeDGpA1XHAnVSOEk5Hba58fBhO4wxdpEg3nV8pj9ErqOzE8RNL4S25TqnfddJioDlIP4i TVucJyB6aKk/dcpUfSkWFJRj/zAd8YE+dGCOLXKMVNRsb+Rd76bUQ31aMHBEGyf2rI0AgG bCdBYP7CyPuNgSfHEptho/C6I6h5fQh+PX85h1sMtgQe25vYvFn5+IuMpwXdWsv2YIvK1N JEu0cvYo6JrWx9XEK9XOMJhjL/H9B8SXmXI2KksyTQx+/A+eV1U5NfTtA5GQynOtJ7YkGp p3JFrFI+Nzy297lxEu3L6fcynxc4utozLRDBS1sCSoS7uspHjRc1tEhN1zaQDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716998423; a=rsa-sha256; cv=none; b=EbV2oqvmVdhMsZ9FJonsqCKXSOfzWJaBADyjDAVmMF7hbVZLZXDt1vlzG+DwRNThFMPJ5y S180mZJjh6nRPzuERrigHbTl3X9uaXm6J4MTr5r388yJOJqsNcNIPwET/kSYnLqxuP6mkK MGFYGV/nSwnc3TNbK1NwDhVo+dCcktJkC2T8s63j12fWd/RWbWXQxVePx2bxKSxGWVOTfw 0eBsKcvoAuIRX71Fb/QwvUSzMnerH58vJYfah6scedgenwwarNxdlso1ur2k6SArexDqJk su5J+Wn7EsHuu8LxtYyuBzCIP76g0GBgihOAiSCx2m9GTMojAAA0HK/A6Dnofw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716998423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OFqjIMyxgJrSTfOvy0iwIIjQrLd4GcmWGd2Cs0x0LGs=; b=xyk5PEhmXwIVaAtiyzzpAooZYBt3eow6czxTT5JeBhYOQady5sCQbrvUEzgicqToEUw7ZJ BGuXjOq9D6xtXM4uxKreXkeQI3tuLp93gv8uGX/BpaDgbgja2m9wLDIgC7DC+uLcuQEA+c M6GQtrneFBbdLCUdcxlZeNq6xpKjp0DLtgg5ZdrIgwzr8xFdZP/JHcqxXNwHQWYLhOW8zF yJ56A7YDrDLCMwzxOY3oKqYsuaouLUkzj5FvumOGi5HvYPIPfKmSgUhOIFQlNgvyqOpNqK 13cZOcfA2rPXh3nV9R+ZapiX9HVZSVI6gYlDRlCbbcomn9dYSZefALjtZqt0dA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VqDcR5Lscz12Jy; Wed, 29 May 2024 16:00:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44TG0Ni6042855; Wed, 29 May 2024 16:00:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44TG0N8r042852; Wed, 29 May 2024 16:00:23 GMT (envelope-from git) Date: Wed, 29 May 2024 16:00:23 GMT Message-Id: <202405291600.44TG0N8r042852@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 6bad7d2486b3 - main - checkstyle9.pl: Add check for missing space between ) { List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6bad7d2486b373015db5917d7a9641266861c607 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6bad7d2486b373015db5917d7a9641266861c607 commit 6bad7d2486b373015db5917d7a9641266861c607 Author: Warner Losh AuthorDate: 2024-05-29 15:59:27 +0000 Commit: Warner Losh 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);