Clean Code adds blank lines between method definitions in Interface

2 posts, 0 answers
  1. Gilles
    Gilles avatar
    7 posts
    Member since:
    Sep 2010

    Posted 28 Apr 2011 Link to this post

    Hello,

    When I use the Clean Code option, JustCode changes my interface definition so that a blank line is inserted between each method definition.

    I cannot find where to change this behavior. Under the Code Cleaning options in JustCode Options, I see that there is a Format code option which is what this probably falls under. I do not want to disable Format code as a whole.

    I also looked in Code Style / C# but I can't find any settings to change this specific behavior. I assume I have missed something which is pretty evident to find.

    Here is an example of the behavrio I am referring to:

    Before:

    public interface IRemiseRecordSet
        {
            IEnumerable<IRemiseDataRow> DetailsRemise { get; set; }
            IRemiseHeaderRow SommairesGlobale { get; set; }
            IEnumerable<IRemiseTrancheRow> SommairesTranche { get; set; }
        }

    After:

    public interface IRemiseRecordSet
        {
            IEnumerable<IRemiseDataRow> DetailsRemise { get; set; }
      
            IRemiseHeaderRow SommairesGlobale { get; set; }
      
            IEnumerable<IRemiseTrancheRow> SommairesTranche { get; set; }
        }
  2. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 04 May 2011 Link to this post

    Hi Gilles,

    Thanks for sharing that with us. Currently that's the default behavior of JustCode's code formatter. We're working hard on improving that functionality for the next major release. We'll introduce lots of new options for code formatting, and the one you describe here is included in our product backlog with top priority, so stay tuned for updates. In the meantime keep on sharing your thoughts and ideas on our product.

    Greetings,
    Kaloyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top