summaryrefslogtreecommitdiff
path: root/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow messages to be added by symbolic name as well as by ID.Torsten Marek2013-06-181-6/+8
|
* Extend the line length check.Torsten Marek2013-06-171-0/+2
|
* astng has been renamed astroidDavid Douard2013-06-171-9/+9
|
* old-style classes are deprecated: refactor to new styleNicolas Chauvat2013-05-201-2/+2
|
* Minor updates for the token checker interface, triggered by the review.Torsten Marek2013-05-031-1/+1
|
* Tokenize the input source only once and hand it to all checkers that need ↵Torsten Marek2013-05-011-2/+14
| | | | | | | | | 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.
* a few pylint fixes and copyright cleanupsSylvain Th?nault2013-03-291-3/+3
|
* Make sure that pragmas that apply to whole lines are interpreted literally, ↵Torsten Marek2013-03-291-5/+35
| | | | | | | | | so that their scope is not extended to the whole scope if they occur at the beginning of a scope. Closes #123285
* fix name error causing crash when symbols are included in output messages. ↵Aurelien Campeas2013-03-131-1/+1
| | | | Closes #124662
* Two small fixes for suppression warnings I00{2,1}:tmarek2013-02-201-0/+11
| | | | | - 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
* Add messages I0020 and I0021 for reporting of suppressed messages and ↵tmarek2012-11-121-0/+28
| | | | | | | useless suppression pragmas. Closes #110840 Both messages are disabled by default, and only emitted after all other checkers have been processed.
* add support for --disable=all option (closes: #105327)Alexandre Fayolle2012-10-031-0/+5
| | | | | updated the documentation accordingly deprecate 'disable-all' as an inline directive in favor of 'skip-file'
* lint fixesSylvain Th?nault2012-09-191-5/+4
|
* Closes #104572: symbolic warning names in output (by Martin Pool)Martin Pool2012-09-191-9/+40
| | | | triggered whatever the format using a command line option
* use .iter* version of dict methods when possibleSylvain Th?nault2012-09-191-7/+7
|
* Refactoring reporting.Sylvain Th?nault2012-05-031-5/+2
|
* cleanupsSylvain Th?nault2011-06-161-4/+3
|
* closes #69220: add column offset to the astng nodeSylvain Th?nault2011-06-161-1/+6
|
* cleanup / test: rename a method and move some stuff around for easier testingEmile Anclin2010-12-131-2/+2
|
* py3k: catch SyntaxError while searching for a fileEmile Anclin2010-11-221-1/+3
| | | | | | | | | | | When loading a module without the file name, Pylint uses lgc.find_module which uses imp.find_module at lgc.modutils l. 606. When doing this with "func_unknown_encoding" in Python 3.x, a syntax error arises, where as in python 2.x, it friendly returns "pylint/test/input/func_unknown_encoding.py". This is a Python bug : http://bugs.python.org/issue10588 and capturing SyntaxError should be removed as soon as possible
* messages: add "check_messages" decorator to store messagesEmile Anclin2010-12-091-4/+19
| | | | | | 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: remove unused needs_checkers attribut and sort_checkers methodEmile Anclin2010-12-091-5/+3
| | | | | what was expected to be accomplished needs_checkers will be done easier with a decorator
* cleanup: simplify add_checkerEmile Anclin2010-12-061-26/+16
|
* 223 : run python2.x compatible fixersEmile Anclin2010-11-151-2/+2
|
* remove more 2.4 compatEmile Anclin2010-11-151-1/+0
|
* py3k: fix sort_msgs: cmp keyword does not exist anymoreEmile Anclin2010-11-101-9/+10
|
* doc: little full-documentation improvement (closes #47885)Emile Anclin2010-10-261-0/+3
|
* python2.3 compat fixesEmile Anclin2010-09-221-0/+1
|
* fix statement countSylvain Th?nault2010-05-111-0/+3
|
* fix full documentation generationSylvain Th?nault2010-04-191-23/+25
|
* also unify [en|dis]able-report with generic [en|dis]able.Sylvain Th?nault2010-04-191-1/+12
| | | | Provide bw compat from -msg because it may be heavilu used in python files.
* cleanup, d-t-w, fix remaining [en|dis] method callSylvain Th?nault2010-04-191-39/+77
|
* use generic disable / enable methods and inline optionSylvain Th?nault2010-04-191-21/+11
|
* refactor messages and checker handlingSylvain Th?nault2010-04-161-74/+84
| | | | | | | | | | | | | | | | * new ast walker, built at registration time * properly handle dependencies between checkers instead of priority based order * only run checker necessary according to activated message * much more simple command line: [en|dis]able-msg, [en|dis]able-msg-cat and [en|dis]able-report superseeded by [en|dis]able options -> we should split current checkers into simpler checker with the same name, and proper dependencies when needed
* copyright update : date up 2010Emile Anclin2010-03-231-2/+2
|
* fix #9791Vincent2009-11-251-3/+25
| | | | | | | | | | | | | | | | https://www.logilab.net/elo/ticket/9791 In lint.py: * rename "--list-msgs" option into "--full-documentation", * add a specific "--list-msgs" option ant its callback, and in MessagesHandlerMixIn in utils.py: * rename list_messages() method into print_full_documentation(), * add list_checkers_messages() method, * add list_messages() method, *add list_sorted_messages().
* d-t-w, cleanupSylvain Th?nault2009-08-261-22/+22
|
* use .fromlineno, not .linenoastng2sylvain thenault2009-03-191-3/+1
|
* fix output status computingSylvain2009-03-171-1/+1
|
* remove zero-status-cat option, use message filtering + different status ↵sylvain thenault2009-01-281-3/+10
| | | | code instead
* enhance m.kiilerich patch so exit status code may be somewhat controlled (eg ↵sylvain thenault2009-01-281-4/+4
| | | | which message categories will trigger non zero status code)
* change [en|dis]able-msg-cat options: only accept message categoriessylvain thenault2009-01-281-16/+23
| | | | | identified by their first letter (eg IRCWEF) without the need for comma as separator
* Let pylint exit code indicate result of checksMads Kiilerich2009-01-281-0/+1
| | | | | | | | | | | | | | | If _any_ messages are shown the exitcode will be set to 2. (Exitcode 1 already indicates that no files were specified.) This implements what is requested on https://www.logilab.net/elo/ticket/4691 . The approach taken in this patch is however that any message is an error. If a message shouldn't count as an error it should be disabled. There is a risk that some tool tools which call pylint could interprete the exit code as if _pylint_ failed, and not that pylint completed its job and concluded that the checked _files_ failed. Some smoketests fails with this change - how do I change them to accept exitcode 2?
* cleanup / lint fixesSylvain Thenault2008-12-031-3/+3
|
* factorize import utilsEmile Anclin2008-09-221-1/+47
|
* cleanupEmile Anclin2008-09-101-3/+2
|
* little simplifyingEmile Anclin2008-09-091-7/+4
|
* cleanupSylvain2008-03-271-2/+2
|
* pylint pylintSylvain2007-07-141-2/+2
|
* #3259Sylvain2007-02-191-37/+40
|