summaryrefslogtreecommitdiff
path: root/pylint/lint.py
Commit message (Collapse)AuthorAgeFilesLines
...
* using-constant-test has a false positive when using getattr(), so disable ↵Claudiu Popa2018-10-011-1/+1
| | | | that error locally
* Obtain the correct number of CPUs for virtualized or containerized environments.Claudiu Popa2018-10-011-1/+12
| | | | Close #2519
* Save the first group into a variable and use that insteadClaudiu Popa2018-09-291-5/+7
|
* Partially revert commit fede47a625f40169bf839b7e8e2df643b3471635Claudiu Popa2018-09-181-11/+1
| | | | | | | | | This used to assume that the initial part of a pragma line might have been a comment, but in practice in can be a bunch of control pragmas for different linters, which in turn results in pylint's pragma control no longer applying when it follows those pragma controls. Close #2297
* Reformat the code with blackClaudiu Popa2018-09-171-529/+747
|
* The ``locally-enabled`` check is gone.Claudiu Popa2018-08-241-4/+0
| | | | Close #2442
* first make mypy pass by ignoring typessolanki2018-08-211-1/+1
|
* Update copyright noticesClaudiu Popa2018-07-151-3/+14
|
* Control the maximum number of inference values from pylint with ↵Claudiu Popa2018-07-151-0/+7
| | | | --limit-inference-results
* Filter with should_analyze_file in parallel mode (#2264)Randall Leeds2018-07-101-1/+5
| | | | | | | | | | Each ChildLinter receives a file path and instantiates a linter to check that file. As such, all files are arguments to child linters in parallel mode. Therefore, the check for should_analyze_file must happen in the parent linter, where knowledge of the original arguments is available. Expand the custom should_analyze_file test to exercise parallel mode. Close #1885
* Merge branch 'master' into fix_2177Sushobhit2018-06-221-14/+14
|\
| * standardize help strings a bit (#2207)Mike Frysinger2018-06-201-14/+14
| | | | | | | | | | | | | | A number of help strings are inconsistent in trailing periods, or spaces after them in the middle of text, or add a large amount of whitespace by using \ to continue the string. Standardize a lot of these so all help messages end in a period and there is normal whitespace in the middle.
* | Add new checker useless-object-inheritance.ssolanki2018-06-201-1/+1
|/ | | | Close #2177
* Document jobs=0 behavior in help message and man pageVille Skyttä2018-06-121-1/+2
|
* Fix invalid jobs number error message to note that it can be set to 0Ville Skyttä2018-06-121-1/+1
|
* Remove six package usages. (#2151)Sushobhit2018-05-271-12/+10
|
* pyupgrade (#2136)Anthony Sottile2018-05-221-2/+2
|
* Fix lintClaudiu Popa2018-05-171-1/+1
|
* Add `--exit-zero` option (#2099)Jason Owen2018-05-171-1/+10
| | | | | | | | | | | | | | Add a new command-line option for the use of continuous integration scripts which abort if a command returns a non-zero status code. If the option is specified, and Pylint runs successfully, it will exit with 0 regardless of the number of lint issues detected. Configuration errors, parse errors, and calling Pylint with invalid command-line options all still return a non-zero error code, even if `--exit-zero` is specified. Thanks for hosting a sprint at PyCon 2018! Close #2042
* Switch to using verbose instead of quiet since we want to disable this by ↵Claudiu Popa2018-05-171-9/+10
| | | | default
* Expose quiet mode to command lineGary Tyler McLeod2018-05-171-1/+10
| | | | | The quiet option is parsed in Run.preprocess_options. This was necessary due to the call order in the Run class constructor. The quiet flag was also moved from OptionsManagerMixIn.init() to OptionsManagerMixin.read_config_file() because it wasn't used anywhere else in the class. Currently, quiet mode only manipulates the display of the config file path ("Using config file "). Closes #1863
* Minor corrections in command's `--help` text (#1882)Yuval Langer2018-02-161-1/+1
|
* Fix the wrong scope of the ``disable=`` directive after a commented line.hippo912018-02-141-1/+9
| | | | | | | For example when a ``disable=line-too-long`` directive is at the end of a long commented line, it no longer disables the emission of ``line-too-long`` message for lines that follow. Close #1742
* Spelling fixesVille Skyttä2018-01-301-1/+1
|
* Get rid of trailing `, ` in --version outputNick Drozd2018-01-181-1/+1
|
* Fixed typo in help message.kapsh2018-01-181-1/+1
|
* Enable no-memberNick Drozd2018-01-041-0/+1
|
* Enable redefined-builtinNick Drozd2018-01-041-2/+2
|
* Set max-attributes to 11Nick Drozd2018-01-041-0/+1
| | | | | The greatest number of instance attributes is 21. The next greatest is 11, which is more reasonable.
* Enable broad-except checkNick Drozd2018-01-041-2/+4
| | | | | | This was globally disabled, which is not a great idea, and also locally disabled in a few places. I enabled it globally and consolidated the local disables.
* Regenerate copyright noticesClaudiu Popa2017-12-151-4/+25
|
* Respect disable=... in config with --py3k (#1726)Daniel Miller2017-11-111-0/+8
|
* Adding a check for ``inconsistent-return-statements`` inside function or ↵hippo912017-09-261-1/+2
| | | | | methods. (#1641) Close #1267
* Fix the metavar for suggestion-modeClaudiu Popa2017-08-121-1/+1
|
* Add suggestion-mode flagŁukasz Rogalski2017-08-121-2/+7
| | | | | | | | Added ``suggestion-mode`` configuration flag. When flag is enabled, informational message is emitted instead of cryptic error message for attributes accessed on c-extensions. Close #1466
* Fix lintClaudiu Popa2017-08-091-1/+1
|
* Do not start more jobs than needed (#1614)Roman Ivanov2017-08-091-3/+5
| | | | | pylint always starts all jobs even when analyzing a single file Close #1613
* Log and crash correctly a child process when an error occurs. Close #1445Claudiu Popa2017-07-201-1/+3
|
* Make the help accurate: multiple modules are allowed (#1449)Ned Batchelder2017-05-131-2/+2
|
* Raise meaningful exception for invalid reporter class being selected (#1450)Łukasz Rogalski2017-04-281-6/+14
|
* Spelling fixes (#1397)Ville Skyttä2017-04-021-5/+5
|
* Fix spellingŁukasz Rogalski2016-12-081-2/+2
|
* PyLinter.should_analyze_file has a new optional parameter, called `is_argument`Claudiu Popa2016-08-231-3/+11
| | | | Close #1079
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-231-2/+11
|
* Rename UnknownMessage, EmptyReport to UnknownMessageError, EmptyReportErrorGlenn Matthews2016-07-191-4/+4
|
* Move EmptyReport and UnknownMessage to pylint.exceptionsGlenn Matthews2016-07-191-4/+5
|
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
| | | | | This was changed automatically in #894, but apparently we need to have the copyright notice somewhere.
* Spelling fix (#1003)Florian Bruhin2016-07-131-1/+1
|
* Removed --optimized-ast. Part of #975.Claudiu Popa2016-07-061-14/+0
|
* Remove features which were scheduled for removal.Claudiu Popa2016-07-061-2/+0
|