Skip to content

Document remaining IDExxxx rules #20986

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

Merged
merged 11 commits into from
Oct 9, 2020
Merged

Conversation

mavasani
Copy link
Contributor

@mavasani mavasani commented Oct 8, 2020

All IDExxxx rules currently implemented in Roslyn master should now be documented with a dedicated doc page.

@dotnet-bot dotnet-bot added this to the October 2020 milestone Oct 8, 2020
@mavasani mavasani marked this pull request as ready for review October 8, 2020 15:35
@mavasani mavasani requested review from gewarren and a team as code owners October 8, 2020 15:35
@mavasani mavasani requested review from mikadumont and gewarren and removed request for gewarren October 8, 2020 15:35
mavasani and others added 2 commits October 9, 2020 07:47
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Comment on lines +54 to +55
- [nameof operator](../../../csharp/language-reference/operators/nameof.md)
- [typeof operator](../../../csharp/language-reference/operators/type-testing-and-cast.md#typeof-operator)
Copy link
Member

Choose a reason for hiding this comment

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

The rule is applicable to both C# and VB. I think the parallel doc pages for VB needs to be added too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @Youssef1313. This applies to almost all the IDE rules that have been documented, but all these things were just drastically increasing the scope of work for initial refactor. Additionally, adding a VB specific section to these rule docs made it quite verbose. I have used references to C# keywords/docs to keep the scope reasonable. Feel free to create follow-up PR(s) to add VB specific content to the docs - you may want to first create a PR for updating a single rule and get it reviewed from @gewarren so you are on same page on how to add this content, and then do updates to other rules.

Copy link
Contributor Author

@mavasani mavasani Oct 9, 2020

Choose a reason for hiding this comment

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

By the way, I don't think we should create separate pages for C# and VB, but instead add VB specific content to the same doc. IMO, maintaining 2 extremely similar doc pages for same rule, but different languages, is not scalable and docs will get out of sync and/or make it likely that future additions will miss adding VB counterpart.

@mavasani
Copy link
Contributor Author

mavasani commented Oct 9, 2020

@gewarren Seeing the following warning:

docs/fundamentals/code-analysis/style-rules/index.md | Warning | View | Line 96: [Warning] Cross reference not found: 'System.HashCode.Combine'.

@mavasani
Copy link
Contributor Author

mavasani commented Oct 9, 2020

@gewarren this should be ready now.

Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

LGTM

@mavasani mavasani merged commit 3feaba5 into dotnet:master Oct 9, 2020
@mavasani mavasani deleted the RemainingRUles branch October 9, 2020 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants