diff options
author | Alexander Kapshuna <kapsh@kap.sh> | 2021-03-05 12:07:45 +0300 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-05 10:19:38 +0100 |
commit | 68309155f0da806f9d5dc97fd2d59168869245fe (patch) | |
tree | d842f7146bf00eca403a36ca837c8281e8571855 /doc/whatsnew | |
parent | 25e63b0606721e2cd07d4c2b3d88fcb0461b6db9 (diff) | |
download | pylint-git-68309155f0da806f9d5dc97fd2d59168869245fe.tar.gz |
Add allow-redefined-builtins option to variable checker
Some builtins have little-to-no use in application code while being
convenient as variables names (e.g. id, dir). New option allows
to configure allowed to override names for redefined-builtin checker.
Closes #3263
Diffstat (limited to 'doc/whatsnew')
-rw-r--r-- | doc/whatsnew/2.7.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/whatsnew/2.7.rst b/doc/whatsnew/2.7.rst index 3d5d77ac3..5729e499e 100644 --- a/doc/whatsnew/2.7.rst +++ b/doc/whatsnew/2.7.rst @@ -54,3 +54,5 @@ Other Changes * `len-as-conditions` is now triggered only for classes that are inheriting directly from list, dict, or set and not implementing the `__bool__` function, or from generators like range or list/dict/set comprehension. This should reduce the false positive for other classes, like pandas's DataFrame or numpy's Array. * Fixes duplicate code detection for --jobs=2+ + +* New option `allowed-redefined-builtins` defines variable names allowed to shadow builtins. |