From: "Sean" <spbrogan@outlook.com>
To: devel@edk2.groups.io, kuqin12@gmail.com
Cc: Sean Brogan <sean.brogan@microsoft.com>,
Bret Barkelew <Bret.Barkelew@microsoft.com>,
Michael D Kinney <michael.d.kinney@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>
Subject: Re: [edk2-devel] [PATCH v1 1/1] Pytool: SpellCheck: Defer path expansion in cspell parameters
Date: Tue, 15 Jun 2021 08:59:49 -0700 [thread overview]
Message-ID: <BY3PR19MB4900D75A9573C44051B7299DC8309@BY3PR19MB4900.namprd19.prod.outlook.com> (raw)
In-Reply-To: <20210612050431.660-2-kuqin12@gmail.com>
Please update the signed-off-by to include yours.
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
Thanks
Sean
On 6/11/2021 10:04 PM, Kun Qin wrote:
> From: Sean Brogan <sean.brogan@microsoft.com>
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3454
>
> On Linux the shell expands the wildcard paths and causes multiple files
> to be missed. This change adds additional quotes to defer expansion in
> order to bring parity in cspell result.
>
> 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>
> ---
> .pytool/Plugin/SpellCheck/SpellCheck.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/.pytool/Plugin/SpellCheck/SpellCheck.py b/.pytool/Plugin/SpellCheck/SpellCheck.py
> index 43365441b91c..97b240ef747c 100644
> --- a/.pytool/Plugin/SpellCheck/SpellCheck.py
> +++ b/.pytool/Plugin/SpellCheck/SpellCheck.py
> @@ -133,7 +133,8 @@ class SpellCheck(ICiBuildPlugin):
> #
> relpath = os.path.relpath(abs_pkg_path)
> cpsell_paths = " ".join(
> - [f"{relpath}/**/{x}" for x in package_relative_paths_to_spell_check])
> + # Double quote each path to defer expansion to cspell parameters
> + [f'"{relpath}/**/{x}"' for x in package_relative_paths_to_spell_check])
>
> # Make the config file
> config_file_path = os.path.join(
>
next prev parent reply other threads:[~2021-06-15 15:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-12 5:04 [PATCH v1 0/1] SpellCheck plugin inspects fewer files when run on Linux Kun Qin
2021-06-12 5:04 ` [PATCH v1 1/1] Pytool: SpellCheck: Defer path expansion in cspell parameters Kun Qin
2021-06-15 15:59 ` Sean [this message]
2021-06-15 16:20 ` [EXTERNAL] Re: [edk2-devel] " Bret Barkelew
2021-06-15 17:04 ` Kun Qin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BY3PR19MB4900D75A9573C44051B7299DC8309@BY3PR19MB4900.namprd19.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox