else-if-used / R5501#
Consider using "elif" instead of "else" then "if" to remove one indentation level
Used when an else statement is immediately followed by an if statement and does not contain statements that would be unrelated to it.
if input(): pass else: if len(input()) >= 10: # [else-if-used] pass else: pass
if input(): pass elif len(input()) >= 10: pass else: pass
- This message is emitted by the optional 'else_if_used'
checker which requires the
pylint.extensions.check_elifplugin to be loaded.
Created by the else_if_used checker.