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

Failed to detect missplaced curly bracket #26

Open
Nafiros opened this issue Mar 6, 2020 · 0 comments
Open

Failed to detect missplaced curly bracket #26

Nafiros opened this issue Mar 6, 2020 · 0 comments

Comments

@Nafiros
Copy link

Nafiros commented Mar 6, 2020

Actually missplaced curly brackets are not detected.
According to the L4 rule :

"Opening curly brackets should be at the end of their line, except for functions where they must be placed alone on their line."

in this test case :

int main(void) {
----if (1)
----{
--------return (1);
----}
----return (0);
}

missplaced curly bracket are not detected for the function AND the if statement.

Cheers,

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