T019: no detection of else token without braces
Issue #28
duplicate
I have patched the T019 script to also detect else statement without braces, for instance:
if (i == 1) {
printf("good");
} else
printf("bad");
Comments (2)
-
-
- changed status to duplicate
Duplicate of
#29. - Log in to comment
Thanks a lot for the fix! Could you submit a pull request with that fix as well as an updated test for this rule? It would also be nice to have your name (or nickname) so we can give you the credits for your contribution :-)