Commit Graph

10 Commits

Author SHA1 Message Date
Claudiu Popa
e00abd9214 Treat AsyncFunctionDef just like FunctionDef nodes
When support for Python 3.5 was added, AsyncFunctionDef
wasn't handled properly in terms of FunctionDef, which meant
that most of the checks which involved a function were never
called for AsyncFunctionDef. This led to spurious false positives
which occurred when AsyncFunctionDef were analyzed.
Closes #767
2016-01-09 17:13:51 +02:00
Claudiu Popa
60b5ced178 Basic travis support.
Some of the pylint errors were also removed.
2015-12-16 17:25:28 +02:00
Claudiu Popa
6cf07b3483 Don't emit super-on-old-class on classes with unknown bases.
The change also removes the confidence handling for super-on-old-class,
which isn't used enough to merit its existence.
Closes issue #721.
2015-12-06 14:54:52 +02:00
Claudiu Popa
4fe6bc4dcd Cleanup pylint issues
This changeset also brings a couple of changes:

   * rrheaders and rcheaders are dropped from html_writer.Table's constructor.
     They weren't used at all and it was dead code. This simplified some
     if statements.

   * _is_attribute_property is used to look for a property assignment
     instead on relying on a different implementation.
2015-11-21 19:42:08 +02:00
Claudiu Popa
538c30ef91 Import has_known_bases and safe_infer back into pylint from astroid, until the latter stabilizes its API.
Currently astroid goes into a total revamp, having a couple of development branches with partially
incompatible APIs, which means that pylint can't rely on the exact location of has_known_bases
and safe_infer until astroid reaches a new major release. With this in mind, these two
functions are backported in pylint again.
2015-11-20 12:52:19 +02:00
Claudiu Popa
ead6051dd1 Add ChangeLog entry for too-many-nested-blocks and fix the errors in pylint. 2015-11-04 12:43:40 +02:00
Claudiu Popa
a1b3c9623a Use the new node names for the visit and leave methods
Also, emit a PendingDeprecationWarning if the old names are still
used, this support being removed in pylint 2.0.
2015-08-26 22:09:27 +03:00
Claudiu Popa
7378c72503 Update pylint to use the new astroid AST names and methods
Also improve a couple of imports and added support for the
old visit_ names. Priority will have the old visit_ names, such
as visit_discard over visit_expr, visit_callfunc over visit_call
etc.
2015-08-25 21:06:19 +03:00
Claudiu Popa
47b1c77360 Use safe_infer and has_known_bases from astroid.helpers. Closes issue #593. 2015-07-06 19:57:11 +03:00
Ionel Cristian Maries
26eb7f9a2e Move all package files to a pylint package. 2015-02-14 18:13:20 +02:00