summaryrefslogtreecommitdiff
path: root/pylint/lint.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed --files-output option. Part of #975.Claudiu Popa2016-07-061-14/+1
|
* Remove the support for html reportingClaudiu Popa2016-07-051-2/+2
| | | | | | | | | | The html reporter was lately a second class citizen in Pylint, being underdeveloped and mostly neglected. It has a couple of bugs, but the more important reason why this is removed is that we now have a much better json reporter, which can be used as a basis for more prettier html Pylint outputs. Part of #975
* Add the new shorter license header, including to missing files. Close #894.Claudiu Popa2016-06-011-15/+3
|
* Add the current directory as well into sys.path. This will fix some issues ↵Claudiu Popa2016-05-101-1/+1
| | | | with local namespace packages, such as no-name-in-module.
* Show fatal messages when disabling no-error messages (#890)Alan Evangelista2016-05-051-3/+3
| | | | Currently 'pylint -E' disables all non-error messages, but this includes fatal errors as well. This change reverts that, since fatal errors are errors after all.
* Document that enable can appear only once in the configuration fileClaudiu Popa2016-03-061-1/+3
| | | | Close #486
* Use an OrderedDict for storing the configuration elementsClaudiu Popa2016-03-051-2/+2
| | | | | | | | | | This fixes an issue related to impredictible order of the disable / enable elements from a config file. In certain cases, the disable was coming before the enable which resulted in classes of errors to be enabled, even though the intention was to disable them. The best example for this was in the context of running multiple processes, each one of it having different enables / disables that affected the output. Close #815
* Merge branch '2.0'Claudiu Popa2016-02-161-18/+23
|\ | | | | | | | | | | master now has become 2.0, there won't be another 1.6 anymore, since the focus of the team is on the next big release now. Minor bug fixes will be implemented though in 1.5.X.
| * Add note about the json output format.Claudiu Popa2015-12-291-2/+2
| |
| * Disable reports by default and show the evaluation score by defaultClaudiu Popa2015-12-291-10/+18
| | | | | | | | | | | | | | | | | | | | | | As per discussion from issue #746, the reports were disabled by default in order to simplify the interaction between the tool and the users. The score is still shown by default, as a way of closely measuring when it increases or decreases due to changes brought to the code. The patch introduces a new command line flag, "--score" or its shorthand version, "-s", which controls if the score is shown or not. By default, it's set to true.
| * Remove unused variables.Claudiu Popa2015-12-281-4/+1
| |
| * Disable the information category messages by default.Claudiu Popa2015-12-281-2/+1
| | | | | | | | This is a step towards making pylint more sane, as per the discussion from issue #746.
* | Add the ability to ignore files based on regex matching.Aru Sahni2016-01-091-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | This addresses issue #156 by allowing for multiple ignore patterns to be specified. Rather than clobber the existing ignore option, I've introduced a new one called ignore-patterns. That way there are as few surprises as something involving regular expressions can have. Multiple patterns must be separated by a comma. For example, if I wanted to ignore all files that started with `test_` and `_`, I'd pass this in: `--ignore-patterns="test_.*","_.*"`. Close #156
* | Decouple the displaying of reports from the displaying of messagesClaudiu Popa2016-01-091-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Some reporters are aggregating the messages instead of displaying them when they are available. The actual displaying was conflatted in the generate_reports. Unfortunately this behaviour was flaky and in the case of the JSON reporter, the messages weren't shown at all if a file had syntax errors or if it was missing. In order to fix this, the aggregated messages can now be displayed with Reporter.display_message, while the reports are displayed with display_reports. Close #766 and #765
* | Rename display_results to display_reports, the old name being deprecated.Claudiu Popa2016-01-091-2/+2
|/
* Remove features in 1.6.0 which were scheduled for removal.Claudiu Popa2015-12-171-6/+1
|
* Make pylint work with new astroid exceptions, AstroidImportError and ↵Claudiu Popa2015-12-061-7/+5
| | | | AstroidSyntaxError.
* Fix new import related errors in pylint's codebase.Claudiu Popa2015-11-251-2/+2
|
* Use a generator comprehension instead of creating a list.Claudiu Popa2015-10-261-1/+1
|
* Cleanup _parallel_task by moving the creation of the config into its own ↵Claudiu Popa2015-10-261-3/+7
| | | | function.
* Remove trailing whitespace.Claudiu Popa2015-10-201-1/+1
|
* Obsolete options are not present by default in the generated configuration file.Claudiu Popa2015-10-201-1/+3
| | | | Closes issue #632.
* Bring logilab-common's ureports into pylint.reporters.Claudiu Popa2015-09-051-7/+7
| | | | | | | | With this change, we moved away from depending on logilab-common, having in Pylint all the components that were used from logilab-common. The API should be considered an implementation detail and can change at some point in the future. Closes issue #621.
* Make the --profile flag obsolete. Will be removed in Pylint 1.6.Claudiu Popa2015-09-021-15/+2
|
* Bring parts of logilab.common.configuration and logilab.common.optik_ext ↵Claudiu Popa2015-09-011-9/+8
| | | | | | | | | | | | | | | | | into pylint.config The reason behind this is that we can better control the behaviour of the underlying configuration modules, such as the case for undefined options or for quickly fixing other bugs. Another side effect of this change is that it gets us closer to the moment where we will not be dependent on logilab.common anymore, which will definitely make our pytest users happy. Some parts were copied almost verbatim from logilab.common.configuration and logilab.common.optik_ext and pylint.config will definitely need a refactoring and reengineering for abstracting the configuration, so that we won't use optparse anymore, but that's subject for another patch.
* --comment flag was obsoleted and it will be removed in Pylint 1.6.Claudiu Popa2015-08-201-7/+1
|
* Remove ignored-builtin-module since it's not useful.Claudiu Popa2015-08-201-4/+0
|
* Fix pylint warnings for the code imported from logilab-common.Claudiu Popa2015-08-181-7/+7
|
* Get rid of logilab.common.interface.Florian Bruhin2015-07-261-4/+3
| | | | | --HG-- branch : no-logilab-common
* Get rid of logilab.common.optik_ext and logilab.common.textutils.Florian Bruhin2015-07-261-9/+7
| | | | | --HG-- branch : no-logilab-common
* Get rid of astroid.common.__version__.Florian Bruhin2015-07-251-3/+2
| | | | | --HG-- branch : no-logilab-common
* Stop using logilab.common.__pkginfo__Julien Cristau2015-06-301-1/+1
| | | | | We only need the version, and it's available directly in logilab.common. Closes issue #575
* Fix some pylint warnings over pylint's codebase.Claudiu Popa2015-05-161-11/+13
|
* Fix other pylint warnings over pylint's codebase.Claudiu Popa2015-05-081-2/+2
|
* Fix a couple of other pylint warnings over pylint codebase.Claudiu Popa2015-05-071-13/+13
|
* Remove unused variables.Claudiu Popa2015-05-071-1/+1
|
* Fix the wrong hanging indentation.Claudiu Popa2015-05-051-2/+1
|
* Make ignore-iface-methods a noop option, mark it as deprecated.Claudiu Popa2015-05-051-10/+3
|
* The lineno attribute of a SyntaxError can be None when the problem isn't ↵Claudiu Popa2015-04-011-1/+1
| | | | related to a particular line.
* Remove "pointless-except" checkerSteven Myint2015-03-301-1/+0
| | | | This fixes #506.
* MergeSimu Toni2015-03-281-2/+7
|\
| * Remove trailing whitespace.Claudiu Popa2015-03-281-1/+1
| |
| * Improve the message report for --jobs. Closes issue #501.Claudiu Popa2015-03-281-2/+7
| |
* | issue-422 solved some pylint warnings when running pylint on pylint code baseSimu Toni2015-03-281-18/+18
|/
* Improve the performance of --jobs when dealing only with a package name.Claudiu Popa2015-03-241-8/+8
| | | | | | | The performance is improved by obtaining the files which should be analyzed from the list of given modules, using PyLinter.expand_modules. This is already what PyLinter._do_check does, but the behaviour was missing from PyLinter._parallel_check. Closes issue #479.
* --jobs can be used with --load-plugins now. Closes issue #456.Claudiu Popa2015-03-241-1/+4
|
* Handle the case where SyntaxError is reraised as AstroidBuildingException.Claudiu Popa2015-03-181-3/+7
|
* Added a new option for controlling the peephole optimizer in astroid.Claudiu Popa2015-03-141-0/+14
| | | | | | | | | | | | The option ``--optimize-ast`` will control the peephole optimizer, which is used to optimize a couple of AST subtrees. The current problem solved by the peephole optimizer is when multiple joined strings, with the addition operator, are encountered. If the numbers of such strings is high enough, Pylint will then fail with a maximum recursion depth exceeded error, due to its visitor architecture. The peephole just transforms such calls, if it can, into the final resulting string and this exhibit a problem, because the visit_binop method stops being called (in the optimized AST it will be a Const node).
* Document what include-ids and --symbols did in the past and point to ↵Claudiu Popa2015-03-121-4/+9
| | | | msg-template instead. Closes issue #215.
* Merged in mibalint/pylint (pull request #234)Claudiu Popa2015-03-061-5/+8
|\ | | | | | | #422 [pylint sprint] Create pylintrc and disable checking for all issues