csharpsquid:S3903 C#10

Hello World!

I am not sure if this issue is relevant since C# 10?
I am sorry if the issue has been mentioned before or not properly tagged.

I am eager to improve the feedback style with the next post.

The rule is still relevant. C# 10 file-scoped namespaces merely make it easier to comply, with an alternative compliant solution

namespace SomeSpace;

public class Foo
{
}

public struct Bar
{
}

Perhaps it could be useful to add to the rule description. It was not there when I just checked at RSPEC .

3 Likes

Hi,

Welcome to the community and thanks for this report!

This is flagged for the language experts.

 
Ann

1 Like

Hi @GregorRutaAIBob ,

Thanks for the report,
I agree with @jilles-sg, this is still relevant.
I’ll update the RSPEC with an example using file-scoped namespaces

1 Like

Thank you everyone for a warm welcome and a good solution to the problem.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.