Skip to content

Multi-file code fix verification#2140

Merged
sharwell merged 5 commits intoDotNetAnalyzers:masterfrom
otac0n:multi-file-code-fix-verification
Jul 14, 2016
Merged

Multi-file code fix verification#2140
sharwell merged 5 commits intoDotNetAnalyzers:masterfrom
otac0n:multi-file-code-fix-verification

Conversation

@otac0n
Copy link
Copy Markdown
Contributor

@otac0n otac0n commented May 22, 2016

Adds support for verifying code fixes that affect more than one file.

foreach (var code in fixedCode)
{
await this.VerifyCSharpDiagnosticAsync(code.Replace("%1", this.Keyword), EmptyDiagnosticResults, CancellationToken.None).ConfigureAwait(false);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💭 This code construction is repeated a lot. Might be a good idea to add a VerifyNoCSharpDiagnosticsAsync method that will accept either a source file or a list of sources.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Turns out, the overload exists. I'll update.

@vweijsters
Copy link
Copy Markdown
Contributor

👍 Looks good to me, only one small remark.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants