File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
StyleCop.Analyzers.Test/LayoutRules
StyleCop.Analyzers/MaintainabilityRules Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -847,6 +847,9 @@ public void Bar(int i)
847
847
[ MemberData ( nameof ( TestStatements ) ) ]
848
848
public async Task TestNoSA1503StatementWithBracesAsync ( string statementText )
849
849
{
850
+ // TODO: The statement in this test code does not have braces! Change test name or the code?
851
+ // There is uncovered code in SA1501 related to blocks when SA1503 is suppressed, so either
852
+ // change this to do what the the name says or change the name and add another test.
850
853
await new CSharpTest
851
854
{
852
855
TestCode = this . GenerateFixedTestStatement ( statementText ) ,
Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ private static void HandleEventDeclaration(SyntaxNodeAnalysisContext context)
91
91
92
92
if ( syntax . Parent . IsKind ( SyntaxKind . InterfaceDeclaration ) )
93
93
{
94
+ // NOTE: Events in interfaces seem to be reported as EventFieldDeclaration, so this should not happen.
95
+ // Leaving it for consistency and possible future changes though.
94
96
return ;
95
97
}
96
98
You can’t perform that action at this time.
0 commit comments