Skip to content

Formatting body of case in switch statement does not work #65

@rcurran1221

Description

@rcurran1221

Long lines within the body of a case statement are not wrapped like they would be if the same statement was not contained within the body of a case statement.

switch int {
  case 1:
    logger.Log.LogMessage("this is a long string log message, and there are a few more params to this function, and as a line I am far longer than 100 columns", "Information", "1234-5678-9111-1234")
}

run golines on a file with the logger.Log.Logmessage() function in the case body, and then outside, and you will see within the case body, the line is not chopped/wrapped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions