Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseTools: Ecc disable ascii scan #5898

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

leiflindholm
Copy link
Member

Related to the discussion in #5893, replacing #5867 based on conversation with @mdkinney and @ajfish.

The conversation on what to do with regards to the style rules will be a longer one. This change lets us merge #5840 while that conversation is ongoing.

Patch 1/2 still fixes a consistent misspelling of ASCII in ECC.

Patch 2/2 now completely deletes the GeneralCheckNoAscii() test from ECC. However, there are some other tests that still verify (via regex) various identifiers against naming standards from the coding style, enforcing a subset of ASCII there.

My intent is to follow this PR with one adding ASCII-checks for remaining identifier types, as an RFC.

Ecc concistently referred to ASCII/Ascii as ACSII/Acsii, which
bugged me to no end when trying to figure out how those tests
worked. Fix all instances.

Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
The GeneralCheckNonAscii() function is a sledgehammer rejecting any file
containing any character outside of the 7-bit ASCII encoding space, as
well as the DEL character (which seems unrelated).

This conflicts with basic stuff like correctly spelling certain proper
nouns in comments (like copyright statements), or string literals (for
example in multi-language driver binding ComponentNames).

So rip it out, to be replaced by more fine-grained checks to be added as
identified and needed.

Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
@leiflindholm leiflindholm added the push Auto push patch series in PR if all checks pass label Jul 15, 2024
@mergify mergify bot merged commit 5366def into tianocore:master Jul 15, 2024
127 checks passed
@leiflindholm leiflindholm deleted the ecc-disable-ascii-scan branch July 19, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants