Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IfStatement BinaryExpression breaking after close parens when it could stay on same line #132

Closed
belav opened this issue Apr 23, 2021 · 1 comment
Labels
area:formatting type:bug Something isn't working

Comments

@belav
Copy link
Owner

belav commented Apr 23, 2021

The != should stay on the line with close )

public class ClassName
{
    void MethodName()
    {
        if (
            (match = MatchAcceptHeaderrrrrrrrrrrrrrrrrr(
                sortedAcceptValues,
                formatter
            ))
            != null
        ) {
            return;
        }
    }
}
// should be
public class ClassName
{
    void MethodName()
    {
        if (
            (match = MatchAcceptHeaderrrrrrrrrrrrrrrrrr(
                sortedAcceptValues,
                formatter
            )) != null
        ) {
            return;
        }
    }
}
@belav belav added type:bug Something isn't working area:formatting labels Apr 23, 2021
@belav belav changed the title Nested IfStatement IfStatement breaking early May 6, 2021
@belav belav changed the title IfStatement breaking early IfStatement BinaryExpression breaking after close parens when it could stay on same line May 6, 2021
@belav
Copy link
Owner Author

belav commented Jul 19, 2021

handled in #37

@belav belav closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:formatting type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant