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

bug: block-opening-brace-space-before-check doesn't behave correctly depending on order of code. #156

Open
colinkiama opened this issue Dec 16, 2021 · 2 comments

Comments

@colinkiama
Copy link
Member

There are actually 2 mistakes here. test2() and test3() however the test code for this is expecting one mistake. False positive?

void test () { }

void test2 (){ }

void test3 ()
{ }

int main (string[] args) {
    return 0;
}

However, if you swap the order of test2() and test3(), the check works correctly detecting both mistakes. Despite the check behaving correctly, the test code fails.

void test () { }

void test3 ()
{ }

void test2 (){ }

int main (string[] args) {
    return 0;
}
@colinkiama
Copy link
Member Author

Consequently, this also affects the behavior of auto-fixes for this check too.

@colinkiama
Copy link
Member Author

colinkiama commented Mar 10, 2022

Possibly related to #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant