This is a migrated thread and some comments may be shown as answers.

JS inserts a new line for enums after formatting

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
miksh
Top achievements
Rank 1
Iron
miksh asked on 07 Dec 2011, 03:59 PM

Why JustCode insert a new line between enum type and [EnumMember] attribute?

BEFORE:

namespace MyNamespace
{
    using System.Runtime.Serialization;
 
    /// <summary>
    /// Some comment.
    /// </summary>
    [DataContract(Name = "IntervalType", Namespace = "www")]
    public enum IntervalType
    {
        /// <summary>
        /// Some comment.
        /// </summary>
        [EnumMember]
        Type1,
 
        /// <summary>
        /// Some comment.
        /// </summary>
        [EnumMember]
        Type2,
 
        /// <summary>
        /// Some comment.
        /// </summary>
        [EnumMember]
        Type3,
    }
}


AFTER JustCode formatting:

namespace MyNamespace
{
    using System.Runtime.Serialization;
 
    /// <summary>
    /// Some comment.
    /// </summary>
    [DataContract(Name = "IntervalType", Namespace = "www")]
    public enum IntervalType
    {
        /// <summary>
        /// Some comment.
        /// </summary>
        [EnumMember]
 
        Type1,
 
        /// <summary>
        /// Some comment.
        /// </summary>
        [EnumMember]
 
        Type2,
 
        /// <summary>
        /// Some comment.
        /// </summary>
        [EnumMember]
 
        Type3,
    }
}

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 08 Dec 2011, 01:25 PM
Hello Miksh,

 Thanks for pointing that out. It's a bug, indeed, and it's already fixed. The fix be available with our next internal release. There are some telerik points for you as a reward for the observation. Keep the feedback flowing.

Kind regards,
Kaloyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
miksh
Top achievements
Rank 1
Iron
Answers by
Kaloyan
Telerik team
Share this question
or