Skip to content

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented May 4, 2022

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

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.
@BillWagner BillWagner marked this pull request as ready for review May 10, 2022 21:52
@BillWagner BillWagner requested review from gewarren and tdykstra May 10, 2022 21:53

:::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)
Copy link
Member Author

Choose a reason for hiding this comment

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

@tdykstra

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?

Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Contributor

@tdykstra tdykstra left a 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.

@BillWagner BillWagner merged commit 71f085c into dotnet:main May 11, 2022
@BillWagner BillWagner deleted the warning-wave branch May 11, 2022 22:38
BillWagner added a commit to BillWagner/docs that referenced this pull request May 12, 2022
I received community comments on dotnet#29283 after merging.

This fixes those issues.
BillWagner added a commit that referenced this pull request May 12, 2022
I received community comments on #29283 after merging.

This fixes those issues.
@BillWagner BillWagner added the okr-freshness OKR: Freshness of content label May 12, 2022
@BillWagner BillWagner added okr-curation OKR: Curate content to remove outdated recommendations and removed okr-experience labels May 23, 2022
baronfel pushed a commit to baronfel/dotnet-docs that referenced this pull request Jun 21, 2022
I received community comments on dotnet#29283 after merging.

This fixes those issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotnet-csharp/svc errors-warnings/subsvc lang-reference/subsvc okr-curation OKR: Curate content to remove outdated recommendations okr-freshness OKR: Freshness of content

Projects

None yet

4 participants