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

More basic XML Doco for publicly visible API #229

Closed
wants to merge 6 commits into from

Conversation

adamchester
Copy link
Contributor

because eventually, CS1591 should be enabled again.

@@ -23,6 +23,7 @@
using System;

// ReSharper disable CSharpWarnings::CS1591
#pragma warning disable 1591
Copy link
Member

Choose a reason for hiding this comment

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

We disabled 1591 in the build a while back. Why do we need to have this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The assumption was that you wanted to re-enable that setting, once all the warnings were cleared up. If not, then I can stop adding semi-useless doco :)

Copy link
Member

Choose a reason for hiding this comment

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

Do'h, just saw your PR comment. Never mind :)

Copy link
Member

Choose a reason for hiding this comment

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

On a second thought I think we could live without 1591. The comments are enforced in the guideline and are enforced through code reviews. Enforcing them at build time just makes people write comments for the sake of writing them. So I am inclined to leave that in and leave this out if you don't mind.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I don't mind at all. Sounds reasonable.

However, in other projects, we leave it as a warning in debug builds, and have a verify configuration that tries to enforce all the rules that it can. In the verify build configuration, it would be an error to have no comments on a publicly visible member or type. Does that seem more reasonable? This way, as you're preparing to create a PR, you are reminded of the rules. Might scale a little better than explaining it in PRs.

Copy link
Member

Choose a reason for hiding this comment

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

You're absolutely right. There aren't many warnings left and it's easier enforced in the build.

I am going to add the missing comments now and enable it again.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the push mate. I created #230 based on this PR and discussion! Let me know what you think.

@MehdiK
Copy link
Member

MehdiK commented Apr 18, 2014

I made a few minor changes and pushed this up. Please review. Thanks.

@MehdiK MehdiK closed this Apr 18, 2014
@adamchester
Copy link
Contributor Author

Looks good.

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.

2 participants