diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-09-11 20:36:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 20:36:10 +0200 |
commit | dcd488756677fdbac3a8d56c3b1f6c09ddd0d300 (patch) | |
tree | fbe30feff639069d45bfa5dc6b5baac7ff9aaba0 /doc | |
parent | 7390b6fd0b2f80a1d3dc09327f959bffff5a94b0 (diff) | |
download | pylint-git-dcd488756677fdbac3a8d56c3b1f6c09ddd0d300.tar.gz |
Make ``global-variable-not-assigned`` check local scope (#4990)
* Make ``global-variable-not-assigned`` check local scope
This checker now checks whether the names after the global keyword
are reassigned in the local scope.
This closes #1375
* Make ``global-variable-not-assigned`` check functions
This checker now also checks function defintions in the module and local scope
This closes #330
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/whatsnew/2.11.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/whatsnew/2.11.rst b/doc/whatsnew/2.11.rst index 8dfcbf691..6ace2f633 100644 --- a/doc/whatsnew/2.11.rst +++ b/doc/whatsnew/2.11.rst @@ -79,3 +79,9 @@ Other Changes * Fix a bug where pylint complained if the cache's parent directory does not exist Closes #4900 + +* The ``global-variable-not-assigned`` checker now catches global variables that are never reassigned in a + local scope and catches (reassigned) functions + + Closes #1375 + Closes #330 |