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

stylecop sa1116 fix

1 Answer 175 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.
lnu
Top achievements
Rank 1
lnu asked on 11 Jan 2012, 02:03 PM
Hello,

Is it possible to fix this code, as explained in stylecop rule 1116:

Bad Code:
this.Property(x => x.IsDeleted,
               map =>
               {
                   map.Column("IsDeleted");
                   map.Index("i_index_deleted");
                   map.Index("i_index_description");
                   map.Index("i_index_index_type");
               });

Should be:
this.Property(
               x => x.IsDeleted,
               map =>
               {
                   map.Column("IsDeleted");
                   map.Index("i_index_deleted");
                   map.Index("i_index_description");
                   map.Index("i_index_index_type");
               });

Thank you

Laurent

1 Answer, 1 is accepted

Sort by
0
Accepted
Borislav
Telerik team
answered on 13 Jan 2012, 09:48 AM
Hi Laurent,

JustCode have a set of settings, which allows you to customize the formatter. They can be found in menu JustCode / Options / Code Style / C#. In Wrapping page there are sections for method declaration parameters or method invocation arguments. Each section consists of two combo-boxes and one check box. The first check-box named 'Wrap' is used to specify when the parameters/arguments should be placed on a new line. The second on named 'Indent' is used to specify how to indent the parameters/arguments which were put on a new lines. If the check-box 'First included' is checked - the first parameter/argument will be put on a new line.

You can experiment with those setting and setup JustCode to format your code as you want.

Also have started writing a series of blog-post about the JustCode formatter. Please stay tuned for our future releases and check our blog for a new posts.

Kind regards,
Borislav
the Telerik team

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

Tags
General Discussions
Asked by
lnu
Top achievements
Rank 1
Answers by
Borislav
Telerik team
Share this question
or