aboutsummaryrefslogtreecommitdiff
path: root/.pylintrc
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-14 12:01:34 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-09-18 14:49:58 -0700
commitcb0265a6b28e74e0a20fe247cad7e82c68f9412b (patch)
tree72ee86e72e64fdf45270c7d28af42034ea880660 /.pylintrc
parent35a5a69355552be744dc7e1e21fee7182bafa99c (diff)
downloadmeson-cb0265a6b28e74e0a20fe247cad7e82c68f9412b.zip
meson-cb0265a6b28e74e0a20fe247cad7e82c68f9412b.tar.gz
meson-cb0265a6b28e74e0a20fe247cad7e82c68f9412b.tar.bz2
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) <comparator> 0`, see: https://github.com/PyCQA/pylint/issues/3751
Diffstat (limited to '.pylintrc')
-rw-r--r--.pylintrc4
1 files changed, 3 insertions, 1 deletions
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