-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Document warning waves. #29283
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
Document warning waves. #29283
Conversation
First drat is complete.
I think this reads better. It's much less redundant, and these different warnings are related.
While making those edits, fix other open issues on this page.
Work to move portions of the messages and error code into H2s.
|
|
||
| :::code language="csharp" source="./snippets/WarningWaves/WaveFive.cs" id="QueryPrecedenceNoWarn"::: | ||
|
|
||
| ## Members must be fully assigned, use of unassigned variable (CS8880, CS8881, CS8882, CS8883, CS8884, CS8885, CS8886, CS8887) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section was very redundant if I had a separate header for each warning. In this commit, I tried to put some key words shared among the messages and added all the IDs. I'm ambivalent about that format. What do you think? Do you have any better suggestion here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me, though I'm ambivalent about it too, as it makes for a very long heading. The only revision I might consider is to put the warning numbers first to match the sequence in the other headings. You could make it a range --
CS8880-8887
-- but I don't know if that would compromise SEO for 81-87
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point @tdykstra
For now, I'll leave it as merged. I'll check stats and make any updates next month. I'll see how many searches we get on the warning code, vs. direct traffic from the F1 service.
tdykstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, I noted just a few formatting suggestions.
docs/csharp/language-reference/compiler-messages/warning-waves.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/warning-waves.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/warning-waves.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/warning-waves.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/warning-waves.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/warning-waves.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-options/errors-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-options/errors-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-options/errors-warnings.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
I received community comments on dotnet#29283 after merging. This fixes those issues.
I received community comments on #29283 after merging. This fixes those issues.
I received community comments on dotnet#29283 after merging. This fixes those issues.
Document the warning wave warnings from C# 9 through C# 11 (as of preview 17.3).
While editing the page on compiler warnings and errors, fix all remaining open issues.
Fixes #20355
Fixes #24089
Fixes #26199
Fixes #27661
Fixes #27872
Fixes #27927
Fixes #28806
Fixes #29265