Skip to content

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

@colinkiama

Description

@colinkiama

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;
}

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