From cb0265a6b28e74e0a20fe247cad7e82c68f9412b Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 14 Sep 2020 12:01:34 -0700 Subject: pylint: Catch cases of `if len(container)` which should be replaced by `if container` Unfortunately this doesn't catch other abuses of len(continauer) like, `len(container) 0`, see: https://github.com/PyCQA/pylint/issues/3751 --- .pylintrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.pylintrc') diff --git a/.pylintrc b/.pylintrc index 10483d3..37c9f9f 100644 --- a/.pylintrc +++ b/.pylintrc @@ -6,4 +6,6 @@ score=no [MESSAGES CONTROL] disable=all -enable=unreachable \ No newline at end of file +enable= + len-as-condition, + unreachable -- cgit v1.1