diff options
author | Jaehoon Hwang <jaehoonhwang@users.noreply.github.com> | 2021-10-09 23:18:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-10 08:18:46 +0200 |
commit | 220e27dc5bdd6bdd9dbee56d5c7d33a946c8ad17 (patch) | |
tree | c3f34d216acce183b92b7007f4a38811169d4c66 /doc | |
parent | 661703f3c9f030420d6559433b621abdc27ac7b5 (diff) | |
download | pylint-git-220e27dc5bdd6bdd9dbee56d5c7d33a946c8ad17.tar.gz |
Rename `len-as-condition` to `use-implicit-booleaness-not-len` (#5132)
Rename `len-as-condition` to be more general for new checker
`use-implicit-booleaness-not-comparison`
* Refactor `LenChecker` class -> `ImplicitBooleanessChecker`o
* Rename test files/`len_checker.py`/`__init__.py` to reflect new name.
* Add `len-as-condition` as `old_names` for `use-implicit-booleaness-not-len`
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/whatsnew/2.12.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/whatsnew/2.12.rst b/doc/whatsnew/2.12.rst index 9bb00708e..494393adb 100644 --- a/doc/whatsnew/2.12.rst +++ b/doc/whatsnew/2.12.rst @@ -27,3 +27,7 @@ Other Changes * Improve and flatten ``unused-wildcard-import`` message Closes #3859 + +* In length checker, ``len-as-condition`` has been renamed as + ``use-implicit-booleaness-not-len`` in order to be consistent with + ``use-implicit-booleaness-not-comparison``. |