Skip to content

Commit

Permalink
Add coverage related comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornhellander committed Jul 2, 2023
1 parent 92d66c6 commit 58039b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,9 @@ public void Bar(int i)
[MemberData(nameof(TestStatements))]
public async Task TestNoSA1503StatementWithBracesAsync(string statementText)
{
// TODO: The statement in this test code does not have braces! Change test name or the code?
// There is uncovered code in SA1501 related to blocks when SA1503 is suppressed, so either
// change this to do what the the name says or change the name and add another test.
await new CSharpTest
{
TestCode = this.GenerateFixedTestStatement(statementText),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ private static void HandleEventDeclaration(SyntaxNodeAnalysisContext context)

if (syntax.Parent.IsKind(SyntaxKind.InterfaceDeclaration))
{
// NOTE: Events in interfaces seem to be reported as EventFieldDeclaration, so this should not happen.
// Leaving it for consistency and possible future changes though.
return;
}

Expand Down

0 comments on commit 58039b3

Please sign in to comment.