Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | old-style classes are deprecated: refactor to new style | Nicolas Chauvat | 2013-05-20 | 1 | -1/+1 | |
| | ||||||
* | since PyLinter._dynamic_plugins is used as a set, make it a set | Nicolas Chauvat | 2013-05-20 | 1 | -2/+2 | |
| | ||||||
* | add delta to comparison with note from previous execution | Sylvain Th?nault | 2013-05-07 | 1 | -2/+3 | |
| | | | | as suggested by S?bastien Celles | |||||
* | Minor updates for the token checker interface, triggered by the review. | Torsten Marek | 2013-05-03 | 1 | -7/+6 | |
| | ||||||
* | Tokenize the input source only once and hand it to all checkers that need ↵ | Torsten Marek | 2013-05-01 | 1 | -11/+17 | |
| | | | | | | | | | 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. | |||||
* | closes #1 (bitbucket): fix "dictionary changed size during iteration" crash | Sylvain Th?nault | 2013-04-16 | 1 | -2/+2 | |
| | ||||||
* | a few pylint fixes and copyright cleanups | Sylvain Th?nault | 2013-03-29 | 1 | -5/+3 | |
| | ||||||
* | Make sure that pragmas that apply to whole lines are interpreted literally, ↵ | Torsten Marek | 2013-03-29 | 1 | -6/+12 | |
| | | | | | | | | | so that their scope is not extended to the whole scope if they occur at the beginning of a scope. Closes #123285 | |||||
* | Two small fixes for suppression warnings I00{2,1}: | tmarek | 2013-02-20 | 1 | -3/+5 | |
| | | | | | - make sure to include the full message name (with symbol, if requested) in the output - flush I002{0,1} warnings after each module, not after complete run | |||||
* | backport stable | Sylvain Th?nault | 2012-11-12 | 1 | -10/+70 | |
|\ | ||||||
| * | Add hooks for import path setup and move pylint's sys.path | tmarek | 2012-11-07 | 1 | -5/+13 | |
| | | | | | | | | modifications into them. These hooks can be overridden by other implementations. | |||||
| * | Add messages I0020 and I0021 for reporting of suppressed messages and ↵ | tmarek | 2012-11-12 | 1 | -0/+32 | |
| | | | | | | | | | | | | | | useless suppression pragmas. Closes #110840 Both messages are disabled by default, and only emitted after all other checkers have been processed. | |||||
| * | Change the regular expression for inline options so that a preceeding # is ↵ | tmarek | 2012-11-07 | 1 | -1/+1 | |
| | | | | | | | | not optional. | |||||
| * | add support for --disable=all option (closes: #105327) | Alexandre Fayolle | 2012-10-03 | 1 | -4/+24 | |
| | | | | | | | | | | updated the documentation accordingly deprecate 'disable-all' as an inline directive in favor of 'skip-file' | |||||
* | | Fix some typos and grammatical errors in the help text | David Pursehouse | 2012-10-25 | 1 | -4/+4 | |
|/ | ||||||
* | explicit trailing whitespace, avoid temptation to drop those (thx Martin) | Sylvain Th?nault | 2012-10-05 | 1 | -26/+26 | |
| | ||||||
* | don't want to run a checker only because of a Fatal error | Sylvain Th?nault | 2012-09-20 | 1 | -1/+2 | |
| | ||||||
* | minor tweaks to previous changeset (custom reporter). Closes #105337 | Sylvain Th?nault | 2012-09-20 | 1 | -4/+5 | |
| | ||||||
* | Added the ability to specify reporter class name as report's 'output-format'. | Kevin Jing Qiu | 2012-09-20 | 1 | -3/+10 | |
| | | | | | | This allows a custom reporter to be used to format reports. Backwards-compatibility is maintained, so a user can still specify the named reporters such as 'text' or 'parseable'. | |||||
* | lint fixes | Sylvain Th?nault | 2012-09-19 | 1 | -7/+7 | |
| | ||||||
* | Closes #104572: symbolic warning names in output (by Martin Pool) | Martin Pool | 2012-09-19 | 1 | -1/+20 | |
| | | | | triggered whatever the format using a command line option | |||||
* | use .iter* version of dict methods when possible | Sylvain Th?nault | 2012-09-19 | 1 | -7/+7 | |
| | ||||||
* | Call reporter.set_output before reporter.on_set_current_module in order to ↵ | FELD Boris | 2012-07-17 | 1 | -3/+3 | |
| | | | | ease reporter work | |||||
* | use lgc.compat to access builtins for cross-interpreters compat | Sylvain Th?nault | 2012-07-24 | 1 | -4/+3 | |
| | ||||||
* | fix indentation | Sylvain Th?nault | 2012-07-13 | 1 | -4/+4 | |
| | ||||||
* | Make pythonpath behaviour closer to python's (closes #88218) | JT Olds | 2012-05-15 | 1 | -1/+16 | |
| | | | | | | When pylint is called with a single filename as argument, walk its path backwards to find the first directory that doesn't have a __init__.py, and add that to sys.path instead of the cwd. | |||||
* | Add 'on_close' event trigerring and event callback for reporters. | FELD Boris | 2012-05-03 | 1 | -0/+1 | |
| | ||||||
* | Refactoring reporting. | Sylvain Th?nault | 2012-05-03 | 1 | -12/+18 | |
| | ||||||
* | Add 'on_set_current_module' event trigerring and event callback for reporters. | FELD Boris | 2012-03-09 | 1 | -0/+1 | |
| | ||||||
* | This patch is an attempt to completely remove the need for all ↵ | Sylvain Th?nault | 2011-10-26 | 1 | -62/+67 | |
| | | | | | | | | | | | | | | | | | | | | | | Google-internal patches done to pylint. Currently, we have to modify pylint in two places: * Default plugin loading: Due to the way Python applications are deployed, the import magic in checkers.package_load does not work and needs to be replaced. Placing the calls in an overridable methods allows us to modify the behavior in our own linter class * Special reporter: We use a custom reporter. It can be passed to Run using the reporter argument, but creating in the initializer allows for other reporters to be added to REPORTER_OPT_MAP, which is a more general solution and might also benefit others. These changes do not add any value to upstream pylint per se, but are not intrusive and would help us minimize the maintenance burden when upgrading to a new pylint upstream version, freeing up resources for more important work on pylint. | |||||
* | closes #76920: don't crash in preprocess_option if some looked option has no ↵ | Torsten Marek | 2011-09-23 | 1 | -5/+16 | |
| | | | | | | value while on is expected. | |||||
* | Fix --ignore option documentation to match reality (closes #22273) | Julien Cristau | 2011-07-08 | 1 | -4/+3 | |
| | | | | The option can only be passed once, but it takes a list of file names. | |||||
* | add note for IDE developpers | Sylvain Th?nault | 2011-07-08 | 1 | -0/+4 | |
| | ||||||
* | print exceptions not handled by astng | Emile Anclin | 2010-12-15 | 1 | -2/+2 | |
| | ||||||
* | py3k: need to handle guess_encoding in astng | Emile Anclin | 2010-11-22 | 1 | -5/+9 | |
| | | | | | | | | | | 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? | |||||
* | performance: use 'active_msgs' attribute to disable function calls or the like | Emile Anclin | 2010-12-13 | 1 | -1/+4 | |
| | ||||||
* | cleanup / test: rename a method and move some stuff around for easier testing | Emile Anclin | 2010-12-13 | 1 | -14/+21 | |
| | ||||||
* | fix checker disabling: use is_report_enabled to check for enabled reports | Emile Anclin | 2010-12-09 | 1 | -6/+6 | |
| | ||||||
* | messages: add "check_messages" decorator to store messages | Emile Anclin | 2010-12-09 | 1 | -4/+4 | |
| | | | | | | 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. | |||||
* | performance: make sure checkers are not called because of reporters | Emile Anclin | 2010-12-09 | 1 | -4/+7 | |
| | | | | | | - disable all reporters with the "--reports=n" option - fix bug in checking if the reporter is activated - hence also desactivating similar with '-E' (which was not before) | |||||
* | cleanup: remove unused needs_checkers attribut and sort_checkers method | Emile Anclin | 2010-12-09 | 1 | -31/+15 | |
| | | | | | what was expected to be accomplished needs_checkers will be done easier with a decorator | |||||
* | cleanup: remove KeyboardInterrupt capture: it goes through Exception in py ↵ | Emile Anclin | 2010-11-23 | 1 | -2/+0 | |
| | | | | | | >= 2.5 KeyboardInterrupt is no more a subclass of Exception anymore | |||||
* | precize line number in deprecation warning | Sylvain Th?nault | 2010-11-22 | 1 | -2/+2 | |
| | ||||||
* | 223 : run python2.x compatible fixers | Emile Anclin | 2010-11-15 | 1 | -5/+4 | |
| | ||||||
* | remove more 2.4 compat | Emile Anclin | 2010-11-15 | 1 | -1/+0 | |
| | ||||||
* | cleanup: norm_open can be done directly | Emile Anclin | 2010-11-10 | 1 | -2/+1 | |
| | ||||||
* | py3k: update profile option | Emile Anclin | 2010-11-08 | 1 | -5/+3 | |
| | ||||||
* | doc : more update on options | Emile Anclin | 2010-10-25 | 1 | -2/+2 | |
| | ||||||
* | fix exit code on bad options | Emile Anclin | 2010-10-25 | 1 | -1/+6 | |
| | ||||||
* | force source to true when explicitly asked to analyze a file | Sylvain Th?nault | 2010-10-11 | 1 | -4/+3 | |
| |