From nobody Fri Feb 02 05:54:58 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 4TR4jv16sNz59VTS; Fri, 2 Feb 2024 05:54:59 +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 4TR4jv0NSqz4T3g; Fri, 2 Feb 2024 05:54:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706853299; 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=BeaSOlzcxADdm/4bMX1SocEY4P2EFttgv+IjV5xHl/A=; b=L0HL4BnmsECDEJPRqfq5WEcA/JRcuweDONH2imR67rcKtbwk32vFQLL/uPH5uuu7BoTXZq c6jZh1NqstIvdPIwdwGiD6nAxvmDq+N7V7CjM5UafOnPtW6LWuexYyagPA2kVASDDOow8U h8vQvYB4nDvsKQ9r8Q0Pl0hkliB8aLg644AKAF8Inq5SW/IVExyhOp/INKO3I5ScHAyI3i YKNgGIipNnz9xmkfNbiFtzYY5VuIcGyn/7rjd38dok2b5ur6OeSjjOpaHkGF121TVgXEiB 0OVpmKFypKs0SydxwcAgd7EWBJJA+ZINGdyv+iA8d8ymS4mZli4X5/0yiiRbtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706853299; 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=BeaSOlzcxADdm/4bMX1SocEY4P2EFttgv+IjV5xHl/A=; b=V6nY1raDRLzgN+RSul5OtWcHWQSape70i0jtIaLc5ST/B5dXDSGfXCNXIn1fcKgPgEALS8 564cFk05M3/l+ZvGFUthjACgJOB7inJq/aX9ui8SmWwn1JLPwM7+jZ8T8JAD1n5HtwnHVk kRc9a9HqJF7gS2W/S34nJZUZJoyIkqUGUYbCx2YeHIgquCm53tfwQjk2TxJEW1CjuVRKs1 gf573QBxg1ixYftE3F2IMf75igvxezeMD4C2GbkaBeYO+e5zidptZrXw519NsHXOmNUXcT 2bMXKbIyPR6jQp3RqzGoxxXto33MAOaM02yA9r7w5wEcXuAOVVHkrvREw7le8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706853299; a=rsa-sha256; cv=none; b=utzcZ7YB3Na9Z+Wg9WC/MFMBDzGpiHz4afNrhiuDwYmI5hJzdQ8GpY+GhK8g65KQnKoFvn GJZzPVcQN4POBdjJcsj8+h2abp+ruZcG8doWCXVoxTovq9EICCpvcFUlKBcSqINeklITWq lLsI7B1fZFdS0PjeUu+oQ1npvQzeb93ID3G3DBi2NAyH8jCEaAh65XGRxH4GdXV1hg2l3h gsKNUfA0WpggIjvl7Rg8a2f28iKCT7YxFyCen/7zVVgrHGMTqDeqDxyU09AiWVPLGalLfc bcDYgO4Ncfe1joHrIiz9Pt7vR+3c8pjv28OMRO2tdwGYJHtdVvBKcydLLr4BiQ== 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 4TR4jt6XPBzJRy; Fri, 2 Feb 2024 05:54:58 +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 4125sw5b027783; Fri, 2 Feb 2024 05:54:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4125swEG027780; Fri, 2 Feb 2024 05:54:58 GMT (envelope-from git) Date: Fri, 2 Feb 2024 05:54:58 GMT Message-Id: <202402020554.4125swEG027780@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: 0949b237bb90 - main - checkstyle9.pl: Add --github to output for github workflows 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 0949b237bb901255cc418498b91edfe497131579 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0949b237bb901255cc418498b91edfe497131579 commit 0949b237bb901255cc418498b91edfe497131579 Author: Warner Losh AuthorDate: 2024-02-02 05:50:19 +0000 Commit: Warner Losh CommitDate: 2024-02-02 05:50:19 +0000 checkstyle9.pl: Add --github to output for github workflows If you add "::error file=foo/bar.c:line=123:" before the error message, it will appear inline. Sponsored by: Netflix --- tools/build/checkstyle9.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/build/checkstyle9.pl b/tools/build/checkstyle9.pl index 8b30baa10fc9..8fe9b9f94da1 100755 --- a/tools/build/checkstyle9.pl +++ b/tools/build/checkstyle9.pl @@ -25,6 +25,7 @@ my $chk_patch = undef; my $chk_branch = undef; my $tst_only; my $emacs = 0; +my $github = 0; my $terse = 0; my $file = undef; my $color = "auto"; @@ -91,6 +92,7 @@ GetOptions( 'patch!' => \$chk_patch, 'branch!' => \$chk_branch, 'emacs!' => \$emacs, + 'github!' => \$github, 'terse!' => \$terse, 'f|file!' => \$file, 'strict!' => \$no_warnings, @@ -1395,6 +1397,8 @@ sub process { #make up the handle for any error we report on this line $prefix = "$filename:$realline: " if ($emacs && $file); $prefix = "$filename:$linenr: " if ($emacs && !$file); + $prefix = "::error file=$filename:line=$realline:\:" if ($github && $file); + $prefix = "::error file=$realfile:line=$linenr:\:" if ($github && !$file); $here = "#$linenr: " if (!$file); $here = "#$realline: " if ($file);