Skip to content

fix(spelling): allow _wcsnicmp CRT function name#184

Merged
yeelam-gordon merged 2 commits into
mainfrom
dev/yeelam/fix-spelling-wcsnicmp
Jun 2, 2026
Merged

fix(spelling): allow _wcsnicmp CRT function name#184
yeelam-gordon merged 2 commits into
mainfrom
dev/yeelam/fix-spelling-wcsnicmp

Conversation

@yeelam-gordon

@yeelam-gordon yeelam-gordon commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Two small check-spelling config cleanups, both pre-existing (not from #182):

1. Allow the _wcsnicmp CRT function name
The workflow strips the leading underscore from _wcsnicmp (used in src/cascadia/inc/WtaProcess.h) and flagged wcsnicmp as unrecognized. Added it to allow/apis.txt next to its sibling wcsnlen.

2. Remove 4 unused case-variant duplicates from expect/expect.txt
check-spelling is case-sensitive, so allow/ entries only cover the exact casing listed. These 4 expect.txt entries have differently-cased counterparts in allow/ AND aren't used in the codebase, so they're dead weight:

expect.txt (removed) covered by kept because used
PSobject allow/allow.txt psobject
Signtool allow/allow.txt signtool
VTE allow/allow.txt vte
WTCLI allow/apis.txt wtcli

NOT removed (lowercase forms appear in code, so allow/ uppercase doesn't cover):

  • ftcsdoc/specs/#11000 - Marks/Shell-Integration-Marks.md (image filename)
  • msaasrc/host/AccessibilityNotifier.cpp (C++ local variable)
  • stdcppsrc/common.build.pre.props (MSBuild stdcpp20/stdcpp17)

The check-spelling workflow strips the leading underscore from _wcsnicmp
(used in src/cascadia/inc/WtaProcess.h) and flagged 'wcsnicmp' as unknown.
It's a stable Windows CRT wide-string compare function, so add it to
allow/apis.txt next to its sibling wcsnlen.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 2, 2026 07:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds wcsnicmp to the spell-check allow list so the check-spelling workflow stops flagging the _wcsnicmp CRT call in src/cascadia/inc/WtaProcess.h (the leading underscore is stripped before lookup).

Changes:

  • Insert wcsnicmp alphabetically in apis.txt, adjacent to its sibling wcsnlen.

@github-actions

This comment has been minimized.

These 4 case-variants in expect.txt are unused in the codebase — only
their differently-cased counterparts in allow/ are needed:

  PSobject  (lowercase 'psobject' kept in allow/allow.txt)
  Signtool  (lowercase 'signtool' kept in allow/allow.txt)
  VTE       (lowercase 'vte' kept in allow/allow.txt)
  WTCLI     (lowercase 'wtcli' kept in allow/apis.txt)

NOTE: check-spelling is case-sensitive, so ftcs/msaa/stdcpp (lowercase
forms used in markdown image filenames, C++ local variables, and the
stdcpp20/stdcpp17 MSBuild property) are kept — even though uppercase
FTCS/MSAA/STDCPP exist in allow/.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 2, 2026 08:27
@yeelam-gordon yeelam-gordon force-pushed the dev/yeelam/fix-spelling-wcsnicmp branch from 2f26cf9 to 61eb038 Compare June 2, 2026 08:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@yeelam-gordon yeelam-gordon enabled auto-merge (squash) June 2, 2026 08:55
@yeelam-gordon yeelam-gordon merged commit 5676c4e into main Jun 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants