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

Implement new diagnostic SA1652 (EnableXmlDocumentationOutput) #1055

Merged
merged 3 commits into from
Jul 28, 2015

Conversation

sharwell
Copy link
Member

Fixes #1053.

@sharwell sharwell added this to the 1.0.0 Beta 2 milestone Jul 26, 2015
{
if (context.Tree.Options.DocumentationMode == DocumentationMode.None)
{
context.ReportDiagnostic(Diagnostic.Create(Descriptor, context.Tree.GetLocation(new TextSpan(0, 0))));
Copy link
Member

Choose a reason for hiding this comment

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

Do we really want to report a diagnostic on every SyntaxTree?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe, maybe not. Since the documentation mode is a property of each SyntaxTree, I figured this makes sense at least until someone has a major problem with it.

{
return;
}

Choose a reason for hiding this comment

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

No way to avoid the repetition of these?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not without additional refactoring. Each of these methods is its own entry and exit point for analysis of a particular type of syntax node.

@Noryoko
Copy link
Contributor

Noryoko commented Jul 28, 2015

👍

sharwell added a commit that referenced this pull request Jul 28, 2015
Implement new diagnostic SA1652 (EnableXmlDocumentationOutput)
@sharwell sharwell merged commit d8c3bda into DotNetAnalyzers:master Jul 28, 2015
@sharwell sharwell deleted the implement-sa1652 branch July 28, 2015 00:13
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