Closed pylint-bot closed 8 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
check the number of boolean expressions in if statement is reasonnable
--max-bool-expr option allows to configure it (by default, up to 5 are tolerated)
closes issue #677
Originally reported by: Laura Médioni (BitBucket: lmedioni, GitHub: @lmedioni?)
Emit a warning when a test contains too many conditional expressions. This rule should be configurable through a --max-bool-exp option, defaulting to 5.
Example:
would trigger a warning.