Page MenuHomePhabricator

C#: Indent elements inside namespace
Open, NormalPublic

Description

Elements nested in namespaces must be indented.

namespace BadIndent
{
class ThisIsWrong
{
    //...
}
}

namepace GoodIndent
{
    class ThisIsRight
    {
        // ...
    }
}

There is no StyleCop rule specific for this, as both styles (with and without indentation) seems to be accepted by the community, just requiring consistency inside namespaces due to SA1137.

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1137.md

lauromoura triaged this task as Normal priority.