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

Clean Code adds blank lines between method definitions in Interface

1 Answer 44 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.
Gilles
Top achievements
Rank 1
Gilles asked on 28 Apr 2011, 06:00 PM
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; }
    }

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 04 May 2011, 10:02 AM
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
Tags
General Discussions
Asked by
Gilles
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or