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

Poor wording in CA2253 error message #5737

Open
archer884 opened this issue Dec 12, 2024 · 0 comments
Open

Poor wording in CA2253 error message #5737

archer884 opened this issue Dec 12, 2024 · 0 comments
Labels
area-telemetry bug This issue describes a behavior which is not expected - a bug.

Comments

@archer884
Copy link

Description

The wording is as follows:

Named placeholders in the logging message template should not be comprised of only numeric characters

Correct usage is composed of. I realize comprised of is a relatively common (ab)usage, and I do not care. It's a blight upon my language! (...Slightly kidding.) In any case, it is my opinion that we ought to hold compiler messages of all kinds to a very high standard. The compiler is meant to engender trust, after all.

Reproduction Steps

logger.LogError("Hello, {0}!", name);

Expected behavior

Named placeholders in the logging message template should not be composed of only numeric characters

This issue template is ridiculous, by the way.

Actual behavior

...Seriously?

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

@archer884 archer884 added bug This issue describes a behavior which is not expected - a bug. untriaged labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-telemetry bug This issue describes a behavior which is not expected - a bug.
Projects
None yet
Development

No branches or pull requests

2 participants