rspec/rules/S3259/csharp/rule.adoc
2021-06-08 14:23:48 +02:00

36 lines
588 B
Plaintext

By convention, namespaces within a project should start with the project default namespace, and end with the file's position within the project. Anything else may confuse maintainers and callers.
== Noncompliant Code Example
----
// file path: Gui/Screen.cs
namespace Green // Noncompliant
{
class Screen
{
}
}
----
== Compliant Solution
----
// file path: Gui/Screen.cs
namespace Gui
{
class Screen
{
}
}
----
ifdef::env-github,rspecator-view[]
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]