Commit Graph

6 Commits

Author SHA1 Message Date
Torsten Marek
7c5f3eee25 Minor updates for the token checker interface, triggered by the review. 2013-05-03 14:27:03 +02:00
Torsten Marek
06e37c7e99 Tokenize the input source only once and hand it to all checkers that need the token stream.
A lot of checkers need access to the token stream, but they all tokenize the
source code again in BaseRawChecker.process_module. This change introduces
a new checker type ITokenChecker, for which the token stream is created
exactly once in PyLinter, and then injected into all registered checkers.
2013-05-01 13:43:13 +02:00
Sylvain Thénault
baa64bef67 lint fixes 2012-09-19 17:36:47 +02:00
Emile Anclin
4192e79a83 py3k: need to handle guess_encoding in astng
Astng will try to find the right encoding and provide the right "stream"
interface for the Pylint checkers.
Reading a stream with the wrong encoding in py3k will generate a UnicodeError.

The introduced a 'F0010' failure should maybe be replaced by E0501, E0502 and
F0002? However, can we call 'unexpected errors' the ASTNGBuildingExceptions
that we raise in logilab.astng.builder?
2010-11-22 15:36:44 +01:00
Sylvain Thénault
8746b95b65 include Dotan Barak spell fixes patch 2009-11-23 15:15:26 +01:00
root
4becf6f9e5 forget the past.
forget the past.
2006-04-26 10:48:09 +00:00