Details
-
Type:
Finding Detection
-
Status: Closed
-
Resolution: Won't Fix
-
Labels:
-
Message:Change this namespace to "xxx".
-
Default Severity:Minor
-
Impact:Low
-
Likelihood:Low
-
Default Quality Profiles:Sonar way
-
Targeted languages:C#
-
Remediation Function:Constant/Issue
-
Constant Cost:5min
-
ReSharper:CheckNamespace
Description
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 { } }
Attachments
Issue Links
- is related to
-
RSPEC-3317 Class names and file names should match
- Active