TypeName | SA1403FileMayOnlyContainASingleNamespace |
CheckId | SA1403 |
Category | Maintainability Rules |
A C# code file contains more than one namespace.
A violation of this rule occurs when a C# file contains more than one namespace. To increase long-term maintainability of the code-base, each file should contain at most one namespace.
To fix a violation of this rule, ensure that the file only contains a single namespace.
[SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1403:FileMayOnlyContainASingleNamespace", Justification = "Reviewed.")]
#pragma warning disable SA1403 // FileMayOnlyContainASingleNamespace
#pragma warning restore SA1403 // FileMayOnlyContainASingleNamespace