summaryrefslogtreecommitdiff
path: root/checkers/variables.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-1069/+0
|
* pylint pylintSylvain Thénault2014-11-191-31/+29
|
* Use astroid.modutils everywhere.Torsten Marek2014-11-091-3/+2
|
* Documentation improvementsMichal Nowikowski2014-11-041-1/+1
| | | | | | | | | | | - added intros to features page, - fixed PyLint to Pylint in text, - improved ide-integration doc page, - updated pylintrc in examples and - regenerated pylint manual --HG-- branch : docs-improvements-2
* Simplify the import lookup for frames in which a global appears.Claudiu Popa2014-10-021-19/+18
|
* Fix another false positives with 'undefined-variable', where the variable ↵Claudiu Popa2014-09-181-2/+19
| | | | can be found as a class assignment and used in a function annotation. Closes issue #342.
* Don't emit 'unbalanced-tuple-unpacking' when the rhs of the assignment is a ↵Claudiu Popa2014-09-111-0/+5
| | | | variable length argument. Closes issue #329.
* Allow the customisation of callback identifiers. Closes issue #326.Claudiu Popa2014-09-101-2/+10
|
* Extend the cases where 'undefined-variable' and 'used-before-assignment' can ↵Claudiu Popa2014-09-031-5/+33
| | | | be detected. Closes issue #291.
* Change basestring to six.string_typesBrett Cannon2014-08-291-1/+1
| | | | | --HG-- branch : python_6
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-8/+9
| | | | | --HG-- branch : python_6
* Move fix code into a separate private function, _fix_dot_import.Claudiu Popa2014-08-241-30/+33
|
* Implement confidence levels.Torsten Marek2014-07-241-3/+8
| | | | | | | - attach confidence levels to a number of messages - include confidence levels in the message object - if the confidence of a message is not HIGH or UNDEFINED, include it in the test output.
* Don't emit 'unused-import' when a special object is imported (__all__, ↵Claudiu Popa2014-08-111-0/+12
| | | | __doc__ etc.). Closes issue #309.
* Fix an 'unused-import' false positive, when the error was emitted for all ↵Claudiu Popa2014-08-091-5/+13
| | | | the members imported with 'from import' form. Closes issue #304.
* Cleanup.Claudiu Popa2014-08-081-9/+14
|
* Merge.Claudiu Popa2014-08-081-9/+49
|\
| * Fixed checking a list of imported names from a module in unused-import case.Michal Nowikowski2014-08-061-4/+28
| | | | | | | | | | --HG-- branch : fix-293
| * Improved comments.Michal Nowikowski2014-08-041-2/+4
| | | | | | | | | | --HG-- branch : fix-293
| * Fix for wired case with import from stmt.Michal Nowikowski2014-08-041-1/+1
| | | | | | | | | | --HG-- branch : fix-293
| * Review fixes.Michal Nowikowski2014-08-041-7/+13
| | | | | | | | | | --HG-- branch : fix-293
| * Fixed preparing unused-import message.Michal Nowikowski2014-08-021-1/+1
| | | | | | | | | | --HG-- branch : fix-293
| * Improved messages text for unused imports.Michal Nowikowski2014-08-021-3/+11
| | | | | | | | | | --HG-- branch : fix-293
| * Improved presenting unused-import message. Closes issue #293.Michal Nowikowski2014-08-011-8/+8
| | | | | | | | | | --HG-- branch : fix-293
* | Cleanup.Claudiu Popa2014-08-081-2/+5
|/
* Remove extraneous print. The import exception is already handled by another ↵Claudiu Popa2014-07-301-2/+1
| | | | checker.
* Proper handle class level scope for lambdas.Claudiu Popa2014-07-291-4/+36
|
* linting pylintSylvain Thénault2014-07-251-20/+21
|
* Fix more edge cases in the cell-var-from-loop warning (Closes: #233).Torsten Marek2014-07-251-1/+9
|
* Merged in PCManticore/pylint/metaclass_undefined (pull request #111)Claudiu Popa2014-07-231-7/+43
|\ | | | | | | Emit 'undefined-variable' for undefined names used as metaclasses with Python 3 `metaclass=` syntax.
| * Remove check_messages, so that leave_module can be called if ↵Claudiu Popa2014-07-231-1/+0
| | | | | | | | | | | | | | 'undefined-variable' is disabled. --HG-- branch : metaclass_undefined
| * Merge with default.Claudiu Popa2014-07-221-5/+120
| |\ | | | | | | | | | | | | --HG-- branch : metaclass_undefined
| * | If the metaclass was infered properly, skip the undefined-variable check.Claudiu Popa2014-05-051-4/+2
| | | | | | | | | | | | | | | --HG-- branch : metaclass_undefined
| * | Fix a false positive with classes without explictly defined metaclasses ↵Claudiu Popa2014-05-031-0/+5
| | | | | | | | | | | | | | | | | | | | | (inherited from ancestors). --HG-- branch : metaclass_undefined
| * | Emit 'undefined-variable' for undefined names used as metaclasses with ↵Claudiu Popa2014-05-021-9/+43
| | | | | | | | | | | | | | | | | | | | | Python 3 `metaclass=` syntax. --HG-- branch : metaclass_undefined
* | | Don't emit 'unused-variable' when assigning to a nonlocal. Closes issue #275.Claudiu Popa2014-07-231-0/+6
| |/ |/|
* | Definition order is considered for classes, function arguments and ↵Claudiu Popa2014-07-211-1/+66
| | | | | | | | annotations. Closes issue #257.
* | Fix an 'unused-variable' false positive, where the variable is assigned ↵Claudiu Popa2014-07-171-1/+41
| | | | | | | | through an import. Closes issue #196.
* | Don't emit 'no-name-in-module' for ignored modules. Closes issue #223.Claudiu Popa2014-07-121-1/+7
| |
* | Fix a false positive with unbalanced iterable unpacking, when encountering ↵Claudiu Popa2014-07-081-4/+8
|/ | | | starred nodes. Closes issue #273.
* Fix unused-import false positive with Python 3 metaclasses. Closes issue #143.Claudiu Popa2014-05-021-0/+16
|
* Added a new warning for closing over variables that are defined in loops.Torsten Marek2014-04-231-0/+28
|
* Extend the checking for unbalanced-tuple-unpacking and ↵Claudiu Popa2014-04-221-4/+0
| | | | unpacking-non-sequence to instance attribute unpacking as well.
* [variable checker] fix dummy-variable-rgx help. Closes #75Sylvain Thénault2014-04-181-2/+2
|
* Only emit symblic warnings from the variables checker.Torsten Marek2014-04-161-29/+32
|
* various cleanupsSylvain Thénault2014-04-151-6/+7
|
* [variable checker] Fix unused import false positive with augment assignment. ↵Anthony Truchet2014-04-111-1/+5
| | | | Closes #78
* Use the infered name when accessing __all__ elements. Closes 188.Claudiu Popa2014-04-121-1/+1
|
* except as replaced by commas, one with_statement future import added and ↵Ricardo Gemignani2014-03-061-1/+1
| | | | StringFormat used to replace string.format when python < 2.6
* Updated FSF address.Arun Persaud2014-02-231-1/+1
|