Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: f16b05a13bb3a4c685c4c6161c1367e43fcd61f7 https://github.com/tianocore/edk2/commit/f16b05a13bb3a4c685c4c6161c1367e43fcd61f7 Author: Michael Kubacki <michael.kuba...@microsoft.com> Date: 2022-04-04 (Mon, 04 Apr 2022)
Changed paths: M .pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py Log Message: ----------- .pytool/Plugin/UncrustifyCheck: Update func to return absolute paths 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 <michael.d.kin...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Bret Barkelew <bret.barke...@microsoft.com> Signed-off-by: Michael Kubacki <michael.kuba...@microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Commit: dbfbaedb21c94ef8344086ba6532e964e40f5526 https://github.com/tianocore/edk2/commit/dbfbaedb21c94ef8344086ba6532e964e40f5526 Author: Michael Kubacki <michael.kuba...@microsoft.com> Date: 2022-04-04 (Mon, 04 Apr 2022) Changed paths: M .pytool/Plugin/UncrustifyCheck/Readme.md M .pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py Log Message: ----------- .pytool/Plugin/UncrustifyCheck: Add ignore file support REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3880 Currently UncrustifyCheck.py provides the following exclusion options: 1. Override the type of files UncrustifyCheck operates against by default (.c and .h files). Using the "IgnoreStandardPaths" configuration option. 2. By default, UncrustifyCheck skips files in git submodules and ignored by git (the "SkipGitExclusions" configuration option can override this behavior). The goal of UncrustifyCheck is to provide consistent formatting across the codebase. In some rare circumstances, maintainers might need to exclude a specific file (or file pattern) within their package. For example, a small set of auto-generated files from another repository. This change adds a new configuration option that can be specified in a package CI YAML file to describe a list of files within the package that should be ignored by UncrustifyCheck. The configuration option is called "IgnoreFiles" and it uses similar syntax to git ignore to ignore a list of files. Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Bret Barkelew <bret.barke...@microsoft.com> Signed-off-by: Michael Kubacki <michael.kuba...@microsoft.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Sean Brogan <sean.bro...@microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: d932199d39a5e8e47e2d431e897a765b70ceb51e https://github.com/tianocore/edk2/commit/d932199d39a5e8e47e2d431e897a765b70ceb51e Author: Michael Kubacki <michael.kuba...@microsoft.com> Date: 2022-04-04 (Mon, 04 Apr 2022) Changed paths: M OvmfPkg/Bhyve/BhyveRfbDxe/VbeShim.h M OvmfPkg/QemuVideoDxe/VbeShim.h Log Message: ----------- OvmfPkg: Revert Uncrustify formatting in VbeShim.h files REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3875 Reverts changes automatically applied by Uncrustify in commit ac0a286. Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jordan Justen <jordan.l.jus...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Rebecca Cran <rebe...@bsdio.com> Cc: Peter Grehan <gre...@freebsd.org> Cc: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Michael Kubacki <michael.kuba...@microsoft.com> Acked-by: Gerd Hoffmann <kra...@redhat.com> Acked-by: Laszlo Ersek <ler...@redhat.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: ad6816c319cdbd927d81e071996a0dea33c86e4a https://github.com/tianocore/edk2/commit/ad6816c319cdbd927d81e071996a0dea33c86e4a Author: Michael Kubacki <michael.kuba...@microsoft.com> Date: 2022-04-04 (Mon, 04 Apr 2022) Changed paths: M OvmfPkg/OvmfPkg.ci.yaml Log Message: ----------- OvmfPkg: Do not check VbeShim.h formatting with Uncrustify REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3875 The following files: OvmfPkg/Bhyve/BhyveRfbDxe/VbeShim.h OvmfPkg/QemuVideoDxe/VbeShim.h Are auto generated by the following generators: OvmfPkg/Bhyve/BhyveRfbDxe/VbeShim.sh OvmfPkg/QemuVideoDxe/VbeShim.sh Therefore, Uncrustify causes a file update to produce a very large diff due to formatting changes. This change does the following: 1. Reverts the Uncrustify changes applied to the files in commit ac0a286f4d74. 2. Uses a new UncrustifyCheck CI plugin configuration option to exclude the files from future formatting checks. Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jordan Justen <jordan.l.jus...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Cc: Rebecca Cran <rebe...@bsdio.com> Cc: Peter Grehan <gre...@freebsd.org> Cc: Laszlo Ersek <ler...@redhat.com> Signed-off-by: Michael Kubacki <michael.kuba...@microsoft.com> Acked-by: Gerd Hoffmann <kra...@redhat.com> Acked-by: Laszlo Ersek <ler...@redhat.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Compare: https://github.com/tianocore/edk2/compare/3e130e40fc55...ad6816c319cd _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits