summaryrefslogtreecommitdiff
path: root/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* various pylint fixesSylvain Th?nault2013-12-221-9/+9
|
* fix indentation in various places. Damned googlers :pSylvain Th?nault2013-12-041-8/+8
|
* Add support for registering deprecated names for messages.Torsten Marek2013-11-061-1/+15
|
* Take first steps to use the symbolic name internally instead of the numeric id.Torsten Marek2013-11-061-24/+37
| | | | | | | This changeset changes utils.py to use the symbolic name as the primary key in _messages, and the numeric ID as an alternative name in a new dictionary. Also prepares the codebase for supporting renamed messages.
* [output] use more symbol instead of msgid: use them in message occurences ↵Sylvain Th?nault2013-09-251-6/+6
| | | | report and revert order in message help
* [message handling] MessageDefinition grew a new format_help method to useSylvain Th?nault2013-09-251-22/+35
| | | | | | | | instead of linter.get_message_help. Along with previous refactoring, this allows to close bitbucket issue #74. Also, message help now include its min/max python version.
* [message handling] kill sort_msgs function, use sorted with key insteadSylvain Th?nault2013-09-251-12/+2
|
* [message handling]?refactor MessageDefinition instantiationSylvain Th?nault2013-09-251-42/+47
|
* some pylint and style fixesSylvain Th?nault2013-07-311-8/+8
|
* get_msg_display_string always return symbolic nameSylvain Th?nault2013-07-301-5/+1
|
* rename Message to MessageDefinitionSylvain Th?nault2013-07-301-4/+4
|
* utils: allow specifying min and max relevant python versions for a messageJulien Cristau2013-07-171-6/+17
| | | | | Some messages don't make sense for all python versions. Allow that information to be recorded in the message declaration.
* fix register_plugins isdir usage, and use already imported functions. Closes ↵Sylvain Th?nault2013-07-081-4/+4
| | | | issue #33
* Turn reporters into proper plugins rather than classes that are loaded ↵Torsten Marek2013-06-191-1/+30
| | | | explicitly.
* python3: deal with astroid's module.file_stream returning bytesJulien Cristau2013-06-191-5/+6
| | | | | Use tokenize.tokenize() which wants a byte stream. Everywhere else, decode as necessary.
* move EmptyReport exception to pylint.utils and refactor imports so ↵Sylvain Th?nault2013-06-191-1/+3
| | | | pylint.utils stop importing checkers/reporters
* Also use the proper way of checking for enabled messages for leave_* methods.Torsten Marek2013-06-191-5/+3
|
* Refactor PyLintASTWalker to allow using symbolic names in check_messages as ↵Torsten Marek2013-06-191-6/+12
| | | | well.
* 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
|