Changeset 1812:b6ce48af3ecf


Ignore:
Timestamp:
Jun 18, 2019, 8:00:36 AM (4 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Add `no-else-raise`

Don't warn if a `raise` statement is followed by `else` or `elif`.
Although technically Pylint's warning makes sense, I find it helpful
to outline the `if`/`elif`/`else` structure and keep it even one of
the branches gets a `raise` statement.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pylintrc

    r1738 r1812  
    4040# --disable=W"
    4141#disable=
    42 disable=bad-continuation, bad-whitespace, invalid-name, locally-disabled, no-else-return, star-args, unnecessary-pass
     42disable=bad-continuation, bad-whitespace, invalid-name, locally-disabled, no-else-raise, no-else-return, star-args, unnecessary-pass
    4343
    4444
Note: See TracChangeset for help on using the changeset viewer.