summaryrefslogtreecommitdiff
path: root/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* pylint pylintSylvain Th?nault2014-11-191-9/+10
|
* Remove get_init_args from the Message class and move it as private function ↵Claudiu Popa2014-11-171-10/+0
| | | | in lint.py.
* Documentation improvementsdocs-improvements-2Michal Nowikowski2014-11-041-19/+36
| | | | | | | | - added intros to features page, - fixed PyLint to Pylint in text, - improved ide-integration doc page, - updated pylintrc in examples and - regenerated pylint manual
* Use a defaultdict where it makes sense.Claudiu Popa2014-10-251-11/+11
|
* Fix a regression, where '{path}' was no longer accepted in '--msg-template'.Claudiu Popa2014-10-161-5/+12
|\ | | | | | | Patch by LCD47.
| * Fix expansion of {path} in --msg-template.LCD 472014-10-101-4/+5
| |
* | Add new '-j' option for running checks in sub-processes.Claudiu Popa2014-10-151-0/+4
|/ | | | Patch by Michal Nowikowski.
* Wrap dict.items() et. al. in list()Brett Cannon2014-08-291-2/+2
|
* Fix a missed print statementBrett Cannon2014-08-291-1/+2
|
* Modernize to the point of working for Python 2.7 stillBrett Cannon2014-08-291-14/+16
|
* Cleanup the API, by providing a new report_order method to ↵cpopa2014-08-191-17/+7
| | | | ReportsHandlerMixIn, which is overriden by PyLinter for consistent output.
* Some work on making pylint work on Python 3 without 2to3.Torsten Marek2014-08-161-31/+32
|
* Implement confidence levels.Torsten Marek2014-07-241-21/+29
| | | | | | | - attach confidence levels to a number of messages - include confidence levels in the message object - if the confidence of a message is not HIGH or UNDEFINED, include it in the test output.
* Extend the reporter interface with a method that takes a message object, for ↵Torsten Marek2014-08-161-1/+3
| | | | better extendability.
* Move definition of Message class out of reporters module, and make it a ↵Torsten Marek2014-08-161-4/+28
| | | | namedtuple.
* Add the current reporter only if it was removed.cpopa2014-08-181-1/+2
|
* Order of reporting is consistent.cpopa2014-08-181-1/+16
|
* linting pylintSylvain Th?nault2014-07-251-3/+3
|
* [refactor] move handling of file specific state to its own FileState class ↵Sylvain Th?nault2014-07-241-44/+127
| | | | (mostly message states)
* extract a messages store from the MessagesHandlerMixIn classSylvain Th?nault2014-07-241-91/+97
|
* import modutils from astroid, it has been backported thereSylvain Th?nault2014-07-231-2/+2
|
* Don't emit 'no-name-in-module' for ignored modules. Closes issue #223.cpopa2014-07-121-0/+20
|
* fix explicit check of python script. Closes #219Sylvain Th?nault2014-04-291-1/+2
|
* Only use and emit symbolic warnings in the main linter moduleTorsten Marek2014-04-171-5/+6
|
* Always register messages even if they may not be emitted.Sylvain Th?nault2014-04-141-2/+2
| | | | | | | | | | | | This avoid several problems: * error reported because the message is used in enable/disable * check_message doesn't work properly because message is erroneously considered as enabled (because check_message_id raise UnknownMessage) So, put them all in linter._messages, filtering out non-emitable message in list_messages.
* Merged in dnozay/pylint (pull request #87)Sylvain Th?nault2014-04-111-7/+21
|\ | | | | | | fix error with message reports when custom checker uses old-style messages
| * Do not crash when disable or enable in the RC file contain invalid message ↵Torsten Marek2014-04-091-6/+20
| | | | | | | | | | | | IDs or names. Closes #170
| * Updated FSF address.Arun Persaud2014-02-231-1/+1
| |
* | fix error with message reports when custom checker uses old-style messagesDamien Nozay2014-01-141-2/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | when register_messages is called, it allows messages that are in the form of 2-tuples, which means a symbol is not necessary. however, when doing report_message_stats is called, it does not handle the case where there is no symbol. solution: when collecting message, use the message id as the key if the symbol is None. e.g. ``` Messages -------- +------------------+------------+ |message id |occurrences | +==================+============+ |missing-docstring |6 | +------------------+------------+ |W9901 |4 | +------------------+------------+ |invalid-name |1 | +------------------+------------+ ```
* 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
|