summaryrefslogtreecommitdiff
path: root/checkers/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all package files to a pylint package.Ionel Cristian Maries2015-02-141-564/+0
|
* Suppress ResolveErrors from Class.mro in unimplemented_abstract_methods.Claudiu Popa2015-01-151-0/+4
|
* Use a mro traversal for finding abstract methods. Closes issue #415.Claudiu Popa2014-12-211-0/+59
| | | | | | | | | This patch adds a new unimplemented_abstract_methods in pylint.checkers.utils, which is used to obtain all the abstract methods which weren't implemented anywhere in the mro of a class. The code works now by traversing the mro, gathering all abstract methods encountered at each step and resolving the implemented ones through either definition or assignment. This disables a couple of false positives on classes with complex hierarchies.
* pylint pylintSylvain Th?nault2014-11-191-4/+4
|
* Add decorated_with_property function to utils.Claudiu Popa2014-10-151-0/+20
| | | | | This is extracted from typechecker, from the property calling detection code.
* Use safe_infer in has_known_bases.cpopa2014-09-121-12/+8
| | | | | | | Using safe_infer simplifies the code, by removing the need for catching InferenceError and at the same time, increases the level of confidence, because ``next(base.infer())`` does not take in account the fact that a base can be infered to multiple results.
* Shorten a long line.cpopa2014-09-121-1/+3
|
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-3/+3
|
* Some work on making pylint work on Python 3 without 2to3.Torsten Marek2014-08-161-1/+1
|
* Implement confidence levels.Torsten Marek2014-07-241-0/+19
| | | | | | | - 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 'invalid-name' when assigning a name in an ImportError handler. ↵cpopa2014-08-091-0/+27
| | | | Closes issue #302.
* Move inherit_from_std_ex to checkers/utils.py, so that it can be used in ↵cpopa2014-08-081-0/+16
| | | | other checkers as well.
* linting pylintSylvain Th?nault2014-07-251-15/+14
|
* Merge with default.cpopa2014-06-231-1/+7
|\
| * Don't warn with 'bad-format-character' when encountering the 'a' format on ↵cpopa2014-06-161-1/+7
| | | | | | | | Python 3.
* | Merge with default.cpopa2014-06-071-1/+1
|\ \ | |/ |/|
| * merge with defaultcpopa2013-12-191-3/+8
| |\
| * | Various changes to format checker.cpopa2013-10-031-33/+0
| | |
| * | Add basic checks for Python 3 format strings.cpopa2013-09-221-1/+34
| | |
* | | 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
| | |
* | | Fix builtin module name for Python 3.cpopa2014-01-091-1/+1
| | |
* | | Various fixes for #128cpopa2014-01-091-1/+1
| | |
* | | Fix bitbucket #126, don't crash when encountering an AssAttr node in ↵cpopa2014-01-031-2/+4
| | | | | | | | | | | | is_defined_before.
* | | various pylint fixesSylvain Th?nault2013-12-221-28/+29
| |/ |/|
* | Fix a potential crash in the redefine-in-handler warning if theTorsten Marek2013-11-051-1/+1
| | | | | | | | redefined name is a nested getattr node.
* | fix false used-before-assignment for except handler defined identifier used ↵Sylvain Th?nault2013-11-211-0/+5
| | | | | | | | on the same line (closes issue #111)
* | Allow get_argument_from_call to retrieve the first positional argument.cpopa2013-10-081-2/+2
|/
* Handle new astroid With nodesJulien Cristau2013-06-201-2/+4
| | | | 'expr' and 'vars' have been replaced by an 'items' list.
* Add bad-open-mode warning for invalid open modes specified on open/file calls.Torsten Marek2013-06-191-0/+28
|
* Add utility function is_builtin_object.Torsten Marek2013-06-191-0/+4
|
* Do not flag names in nested with statements on the same line as undefined.Torsten Marek2013-06-171-5/+3
|
* astng has been renamed astroidDavid Douard2013-06-171-34/+34
|
* move string literal checker from format.py to strings.pySylvain Th?nault2013-03-291-0/+3
|
* use .fromlineno instead of .lineno (which is not reliable)Sylvain Th?nault2013-02-251-2/+2
|
* quick fix: use %s rather than %s will avoid crash if lineno is None. See ↵Sylvain Th?nault2013-02-251-1/+1
| | | | https://bitbucket.org/logilab/pylint/pull-request/6/fixed-a-bug-in-clobber_in_except-causing
* Fix checkers.utils for other implementations (use of __builtins__). Closes ↵FELD Boris2012-07-091-3/+3
| | | | #99139. Closes #89838. Theses fixes need fixes on logilab-astng and logilab-common
* Closes #93591: Correctly emit W0623 on multiple assignment of unpackable ↵tmarek2012-06-071-3/+18
| | | | | | | | | | | | | exceptions eg for code like try: ... except AnyException as (here, there): ... Instead of warning about redefining tuple, recurse into the tuple and check all names.
* Refactor _check_protected_attribute_access by extracting independent part in ↵Sylvain Th?nault2012-06-071-0/+28
| | | | utils functions. Improve is_super_call docstring.
* Doesn't check that overriden method signature match if it's a private ↵Sylvain Th?nault2012-06-071-2/+10
| | | | method, closes #18772
* Fix the variables check to not emit false positives for E0602 on ↵Torsten Marek2012-03-151-1/+5
| | | | | | {list,generator} comprehension loop variables inside decorators. Closes #77982
* InferenceError may be raised when running the next iteration, but we don't ↵Sylvain Th?nault2012-02-231-0/+2
| | | | want it to propagate
* Update W0623 to not trigger on code like:Sylvain Th?nault2011-10-241-1/+3
| | | | | | | | | | | | | | try: ... except IOError, e: ... ... try: ... except OSError, e: ...
* Fix for #81078: Warn if names in exception handlers clobber overwrite ↵Sylvain Th?nault2011-10-241-0/+25
| | | | existing names
* closes #69993: Additional string format checks for logging moduleSylvain Th?nault2011-07-081-0/+76
|
* messages: add "check_messages" decorator to store messagesEmile Anclin2010-12-091-0/+9
| | | | | | refactor PyLintASTWalker.add_checker to check the stored method's messages; in PyLintASTWalker.add_checker, we only disable methods that has been decorated and have no activated message.
* cleanup: we don't support 2.3 anymoreEmile Anclin2010-12-021-6/+1
|
* remove more 2.4 compatEmile Anclin2010-11-151-1/+1
|
* py3k: fix __builtin__ vs builtinsEmile Anclin2010-10-281-4/+5
|
* add initial support for set and list comprehensionsDaniel Harding2010-10-071-8/+7
|