You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rules SA1649 - File name should match first type name and SA1402 File may only contain a single type stop working. When switching back to block-scoped namespaces, the rules start working again. The following code triggers the rules correctly.
I'm using StyleCop.Analyzers version, 1.2.0-beta.376.
When given a file named
Example.cs
with the following content using file-scoped namespaces in C# 10:The rules
SA1649 - File name should match first type name
andSA1402 File may only contain a single type
stop working. When switching back to block-scoped namespaces, the rules start working again. The following code triggers the rules correctly.There may be other rules that don't work when using file-scoped namespaces in C# 10. I've only discovered these two.
The text was updated successfully, but these errors were encountered: