From 770dd9e70b7235e6268fb4581f1db23ab18c6cd7 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Sat, 21 Nov 2015 17:21:11 +0200 Subject: Added a new refactoring warning, 'simplifiable-if-statement' This is used when an if statement could be reduced to a boolean evaluation of its test, as seen in this example: if some_cond: return True else: return False could be reduced to `return bool(some_cond)` Closes issue #698. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 63aaa04..e9b67fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ ChangeLog for Pylint -- + * Added a new refactoring warning, 'simplifiable-if-statement', + used when an if statement could be reduced to a boolean evaluation + of its test. Closes issue #698. + * Added a new refactoring warning, 'too-many-boolean-expressions', used when a if statement contains too many boolean expressions, which makes the code less maintainable and harder to understand. -- cgit v1.2.1