Skip to content

Commit cd18a2d

Browse files
committed
Update SA1101 for file-scoped namespaces
1 parent c93a4bc commit cd18a2d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules/SA1101PrefixLocalCallsWithThis.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ private static bool HasThis(SyntaxNode node)
249249
case SyntaxKind.DelegateDeclaration:
250250
case SyntaxKind.EnumDeclaration:
251251
case SyntaxKind.NamespaceDeclaration:
252+
case SyntaxKindEx.FileScopedNamespaceDeclaration:
252253
return false;
253254

254255
case SyntaxKind.FieldDeclaration:

0 commit comments

Comments
 (0)