coding standards issue, _Upper should be banned #1004

Open
opened 2026-01-30 22:13:47 +00:00 by claunia · 2 comments
Owner

Originally created by @ChrisGuzak on GitHub (May 12, 2019).

the language standard reserves _Upper and __doubleUnderscore symbols for itself. windows coding standards recognize this as well, all _ prefixes on methods and other things with an upper case second letter should be renamed.

Originally created by @ChrisGuzak on GitHub (May 12, 2019). the language standard reserves _Upper and __doubleUnderscore symbols for itself. windows coding standards recognize this as well, all _ prefixes on methods and other things with an upper case second letter should be renamed.
claunia added the Help WantedProduct-ConhostIssue-BugProduct-TerminalArea-Build labels 2026-01-30 22:13:48 +00:00
Author
Owner

@adiviness commented on GitHub (May 12, 2019):

I've been saying this for years :D

@adiviness commented on GitHub (May 12, 2019): I've been saying this for years :D
Author
Owner

@jsoref commented on GitHub (Jun 23, 2025):

Fwiw, check-spelling's forbidden patterns can enforce rules like this.

The way I'd do it (and this is a note for myself, since I'm likely to do it at some point) is to add:

  1. patterns for specific standard things which are used
  2. replace all things that violate the rule
  3. add a forbidden pattern to enforce the rule with a comment above that suggests a correct token and explains how to add a C/C++ standard instance item to the acceptable list (in the unlikely event that such things need to be referenced)
@jsoref commented on GitHub (Jun 23, 2025): Fwiw, check-spelling's [forbidden patterns](https://github.com/microsoft/terminal/blob/main/.github/actions/spelling/line_forbidden.patterns) can enforce rules like this. The way I'd do it (and this is a note for myself, since I'm likely to do it at some point) is to add: 1. [patterns](https://github.com/microsoft/terminal/blob/main/.github/actions/spelling/patterns/patterns.txt) for specific standard things which are used 2. replace all things that violate the rule 3. add a forbidden pattern to enforce the rule with a comment above that suggests a correct token and explains how to add a C/C++ standard instance item to the acceptable list (in the unlikely event that such things need to be referenced)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1004