← back to index

S3261 — Namespaces should not be empty

Language: C#  |  Type: CODE_SMELL  |  Severity: Minor

Tags: unused

Why is this an issue?

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

Noncompliant code example

namespace MyEmptyNamespace // Noncompliant
{

}