T019: no detection of else token without braces

Issue #28 duplicate
Former user created an issue

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)

  1. Gaëtan Lehmann

    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 :-)

  2. Log in to comment