Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-3261

Namespaces should not be empty

    XMLWordPrintable

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Remove this empty namespace.
    • Default Severity:
      Minor
    • Impact:
      Low
    • Likelihood:
      Low
    • Default Quality Profiles:
      Sonar way, MISRA C++ 2008 recommended
    • Covered Languages:
      C#, C, C++
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      2min
    • Analysis Scope:
      Main Sources, Test Sources
    • Implementation details:
    • ReSharper:
      EmptyNamespace

      Description

      Namespaces with no lines of code clutter a project and should be removed.

      Noncompliant Code Example

      namespace MyEmptyNamespace // Noncompliant
      {
      
      }
      

        Attachments

          Issue Links

          1.
          C# RSPEC-5674 Language-Specification Active Unassigned

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ann.campbell.2 Ann Campbell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: