]> git.proxmox.com Git - mirror_edk2.git/commit
Pytool: SpellCheck: Fix incorrect file mask across package matrices
authorSean Brogan <spbrogan@live.com>
Thu, 10 Jun 2021 01:47:33 +0000 (09:47 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 15 Jun 2021 07:12:13 +0000 (07:12 +0000)
commit288bd74a22b1a3c7130d8a303e332161f923b8d4
tree1483195f0b79b458abf1d15a6095943774d76e5f
parentb8649cf2a3e673a4a8cb6c255e394b354b771550
Pytool: SpellCheck: Fix incorrect file mask across package matrices

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3443

Existing implementation could modify class global data that causes
potential incorrect file mask to be used for execution of plugin.

This change switches class variable to be tuple so that it cannot be
accidently modified. Local usage of STANDARD_PLUGIN_DEFINED_PATHS is also
changed to copy to new list before modification.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
.pytool/Plugin/SpellCheck/SpellCheck.py