codeformatter icon indicating copy to clipboard operation
codeformatter copied to clipboard

NewLineAbove inserts empty newline when no usings are present

Open mrchief opened this issue 9 years ago • 0 comments

I assume this rule ensures that there is a newline between usings and namespace declaration. However, it should not insert an empty newline if there are no usings like in the below example.

namespace abc
{
    public enum Term
    {
        First,
        Second,
        Third,
        Fourth,
        Fifth,
        Sixth,
        Seventh,
        Eighth,
        Ninth,
        Tenth,
        Eleventh,
        Twelfth
    }
}

mrchief avatar Jun 07 '16 23:06 mrchief