Skip to content

Incorrect output for array starting with a negative integer #106

@Dwight-Reed

Description

@Dwight-Reed

When initializing an array of integers on multiple lines and the first value is negative, style50 gives incorrect output

my code:

int my_array[] =
{
    -1,
    2,
    3
};

style50 output:

int my_array[] =
{
    -1,
        2,
        3
    };

If the first integer is not negative, style50 outputs "Looks good!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions