Skip to content

Wrong indentation of the break in switch #1366

@Krizai

Description

@Krizai

The issue is mentioned in the #663, so extracting it to the separate one.

Break positioned outside of the brackets in the switch case, indented aligning to the end of the case line, not to the beginning of it.
In:

@implementation UCTestClass

- (void) test{

    switch (test) {
      case "longlonglonglong":{
          i = 1;
      }
      break;
    }
}

@end

Actual out:

@implementation UCTestClass

- (void)test
{
    switch (test) {
        case "longlonglonglong": {
            i = 1;
        }
                                 break;
    }
}

@end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions