Skip to content

Code cleanup moves comments #27

Description

@matkoch

From: https://youtrack.jetbrains.com/issue/RSRP-475757

Beginning with the following code block:

        private static Dictionary<int, object> Diseases = new Dictionary<int, object>()
                                                              {
                                                                  { 1, null }, // 1
                                                                  { 2, null }, // 2
                                                                  { 3, null }, // 3
                                                                  { 4, null }, // 4
                                                                  { 5, null }, // 5
                                                                  { 6, null }, // 6
                                                                  { 7, null }, // 7
                                                              };

after reformat code:

        private static Dictionary<int, object> Diseases = new Dictionary<int, object>()
                                                              {
                                                                  { 1, null },
                                                                  { 2, null }, // 2
                                                                  { 3, null }, // 3
                                                                  { 4, null }, // 4
                                                                  { 5, null }, // 5
                                                                  { 6, null }, // 6
                                                                  { 7, null }, // 7
                                                                  // 1
                                                              };

after reformat code again:

        private static Dictionary<int, object> Diseases = new Dictionary<int, object>()
                                                              {
                                                                  { 1, null },
                                                                  { 2, null }, 
                                                                  { 3, null }, // 3
                                                                  { 4, null }, // 4
                                                                  { 5, null }, // 5
                                                                  { 6, null }, // 6
                                                                  { 7, null }, // 7
                                                                  // 2
                                                                  // 1
                                                              };

after reformat code again multiple times:

        private static Dictionary<int, object> Diseases = new Dictionary<int, object>()
                                                              {
                                                                  { 1, null },
                                                                  { 2, null },
                                                                  { 3, null },
                                                                  { 4, null },
                                                                  { 5, null },
                                                                  { 6, null },
                                                                  { 7, null }, // 7
                                                                  // 6
                                                                  // 5
                                                                  // 4
                                                                  // 3
                                                                  // 2
                                                                  // 1
                                                              };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions