diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-14 12:01:34 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-09-18 14:49:58 -0700 |
commit | cb0265a6b28e74e0a20fe247cad7e82c68f9412b (patch) | |
tree | 72ee86e72e64fdf45270c7d28af42034ea880660 /.pylintrc | |
parent | 35a5a69355552be744dc7e1e21fee7182bafa99c (diff) | |
download | meson-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-- | .pylintrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,4 +6,6 @@ score=no [MESSAGES CONTROL] disable=all -enable=unreachable
\ No newline at end of file +enable= + len-as-condition, + unreachable |