From nobody Sat Feb 7 08:59:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88342+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88342+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linux.microsoft.com ARC-Seal: i=1; a=rsa-sha256; t=1648830113; cv=none; d=zohomail.com; s=zohoarc; b=jPVO2ODLf3kjJaum1GdNwjvZtsGmMMv9GLGkKX9Y1AWC1EY+O03JJ7YRJKI7PtLrFNpv8x6YTC7SPHHyQIDTd6ZjcHuXU9SVm/k6Gr6PqZhQqmSlIA+V6niRPchHTblWWZGGVlVzjTbDXuuaBZo8pD3teKDxWNv7NDZKv0Pi5CE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648830113; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=JSv71qS24ZYLaT++x2CjSn2V35lUpSU+bGG6o6zGAwk=; b=STjW6tc/wcDpoxgxMc65n1YfF0WNP7n0omatd4YvH4N6Txp2NoIPMnTzHw7BB0ovK5J3LNJdIqzN970j4WCnlmZUNZ3jrcxfKzBqGg3t1oAyVZB0MaHBTlGOFbzTZbMcEZ52D/sdIrSOipJ/hWQlUtJ9K2ogR4ysZIZQs+NZzSU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88342+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1648830113978422.250243514608; Fri, 1 Apr 2022 09:21:53 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id fofoYY1788612xHzLVomhm5L; Fri, 01 Apr 2022 09:21:53 -0700 X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web11.1015.1648830112784976453 for ; Fri, 01 Apr 2022 09:21:53 -0700 X-Received: from localhost.localdomain (unknown [47.202.59.224]) by linux.microsoft.com (Postfix) with ESMTPSA id 7D8FE20DEECE; Fri, 1 Apr 2022 09:21:51 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7D8FE20DEECE From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Sean Brogan , Bret Barkelew Subject: [edk2-devel] [edk2-platforms][PATCH v2 1/4] .pytool/Plugin/UncrustifyCheck: Update func to return absolute paths Date: Fri, 1 Apr 2022 12:21:24 -0400 Message-Id: <20220401162127.2317-2-mikuback@linux.microsoft.com> In-Reply-To: <20220401162127.2317-1-mikuback@linux.microsoft.com> References: <20220401162127.2317-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mikuback@linux.microsoft.com X-Gm-Message-State: 9YDN1nJ8UdXWMvmUwOsbmdZrx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1648830113; bh=7tpmhEH8FF3d6TABO0+1tBq6aZNdHInH+59Oe1b2g00=; h=Cc:Date:From:Reply-To:Subject:To; b=aCPBskawraj8ogtMidh/Oi1FOXSoO8o1ndvMrp91OQv61QX/DtfvMzuM1UnuDV8PQqM DvYgjwcHxojURLfxDKgk15cG3rAR0M8LoXsuYb9sR1sDkJSgRZbH9uNXXBJuYFTu5E8gE 95G3PTNb0pdBV+B3U9OyOHlL5ebYySJ9xWM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1648830115487100003 Content-Type: text/plain; charset="utf-8" From: Michael Kubacki Currently, UncrustifyCheck._get_git_ignored_paths() is documented to return a list of absolute file paths but it currently returns a list of relative file paths. This change updates the function to return a list of absolute file paths. The result is later compared to the list of absolute file paths for files to run against Uncrustify. Cc: Michael D Kinney Cc: Liming Gao Cc: Sean Brogan Cc: Bret Barkelew Signed-off-by: Michael Kubacki Reviewed-by: Michael D Kinney --- .pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py b/.pytool/Pl= ugin/UncrustifyCheck/UncrustifyCheck.py index 82db7a5a438b..6920580646de 100644 --- a/.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py +++ b/.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py @@ -292,7 +292,12 @@ class UncrustifyCheck(ICiBuildPlugin): f"An error occurred reading git ignore settings. This will= prevent Uncrustify from running against the expected set of files.") =20 # Note: This will potentially be a large list, but at least sorted - return outstream_buffer.getvalue().strip().splitlines() + rel_paths =3D outstream_buffer.getvalue().strip().splitlines() + abs_paths =3D [] + for path in rel_paths: + abs_paths.append( + os.path.normpath(os.path.join(self._abs_workspace_path, pa= th))) + return abs_paths =20 def _get_git_submodule_paths(self) -> List[str]: """ --=20 2.28.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#88342): https://edk2.groups.io/g/devel/message/88342 Mute This Topic: https://groups.io/mt/90183060/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-