NormEZ icon indicating copy to clipboard operation
NormEZ copied to clipboard

Failed to detect missplaced curly bracket

Open Nafiros opened this issue 4 years ago • 0 comments

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,

Nafiros avatar Mar 06 '20 13:03 Nafiros