csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Methods that are just long enough break because of keeping { } on the same line

Open belav opened this issue 4 years ago • 0 comments

This line is just long enough that it breaks like so

        public void AddValidator(
            Castle.Components.DictionaryAdapter.IDictionaryValidator validator
        ) { }

Previously it was like this

        public void AddValidator(Castle.Components.DictionaryAdapter.IDictionaryValidator validator)
        { }

Ideally we could just keep { } on the same line even if that puts it over the 100 limit

Related, this doesn't break at all, because there is no Line in the generic type

public System.Collections.Generic.IEnumerator<Castle.Components.DictionaryAdapter.Xml.IXmlIncludedType> GetEnumerator() { }

belav avatar Jul 27 '21 23:07 belav