.TH pylint 1 "2020-03-13" pylint .SH NAME .B pylint \- python code static checker .SH SYNOPSIS .B pylint [ .I OPTIONS ] [ .I ] .SH DESCRIPTION .B pylint is a Python source code analyzer which looks for programming errors, helps enforcing a coding standard and sniffs for some code smells (as defined in Martin Fowler's Refactoring book) Pylint can be seen as another PyChecker since nearly all tests you can do with PyChecker can also be done with Pylint. However, Pylint offers some more features, like checking length of lines of code, checking if variable names are well-formed according to your coding standard, or checking if declared interfaces are truly implemented, and much more. Additionally, it is possible to write plugins to add your own checks. Pylint is shipped with "pyreverse" (UML diagram generator) and "symilar" (an independent similarities checker). .SH OPTIONS .IP "--version" show program's version number and exit .IP "--help, -h" show this help message and exit .IP "--long-help" more verbose help. .SH MASTER .IP "--init-hook=" Python code to execute, usually for sys.path manipulation such as pygtk.require(). .IP "--errors-only, -E" In error mode, checkers without error messages are disabled and for others, only the ERROR messages are displayed, and no reports are done by default. .IP "--py3k" In Python 3 porting mode, all checkers will be disabled and only messages emitted by the porting checker will be displayed. .IP "--verbose, -v" In verbose mode, extra non-checker-related info will be displayed. .IP "--ignore=[,...]" Add files or directories to the blacklist. They should be base names, not paths. [default: CVS] .IP "--ignore-patterns=[,...]" Add files or directories matching the regex patterns to the blacklist. The regex matches against base names, not paths. [default: none] .IP "--persistent=" Pickle collected data for later comparisons. [default: yes] .IP "--load-plugins=" List of plugins (as comma separated values of python module names) to load, usually to register additional checkers. [default: none] .IP "--fail-under=" Specify a score threshold to be exceeded before program exits with error. [default: 10] .IP "--jobs=, -j " Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the number of processors available to use. [default: 1] .IP "--limit-inference-results=" Control the amount of potential inferred values when inferring a single object. This can help the performance when dealing with large functions or complex, nested conditions. [default: 100] .IP "--extension-pkg-whitelist=" A comma-separated list of package or module names from where C extensions may be loaded. Extensions are loading into the active Python interpreter and may run arbitrary code. [default: none] .IP "--suggestion-mode=" When enabled, pylint would attempt to guess common misconfiguration and emit user-friendly hints instead of false-positive error messages. [default: yes] .IP "--exit-zero" Always return a 0 (non-error) status code, even if lint errors are found. This is primarily useful in continuous integration scripts. .IP "--from-stdin" Interpret the stdin as a python script, whose filename needs to be passed as the module_or_package argument. .SH COMMANDS .IP "--rcfile=" Specify a configuration file to load. .IP "--help-msg=" Display a help message for the given message id and exit. The value may be a comma separated list of message ids. .IP "--list-msgs" Generate pylint's messages. .IP "--list-msgs-enabled" Display a list of what messages are enabled and disabled with the given configuration. .IP "--list-groups" List pylint's message groups. .IP "--list-conf-levels" Generate pylint's confidence levels. .IP "--full-documentation" Generate pylint's full documentation. .IP "--generate-rcfile" Generate a sample configuration file according to the current configuration. You can put other options before this one to get them in the generated configuration. .SH MESSAGES CONTROL .IP "--confidence=" Only show warnings with the listed confidence levels. Leave empty to show all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED. [default: none] .IP "--enable=, -e " Enable the message, report, category or checker with the given id(s). You can either give multiple identifier separated by comma (,) or put this option multiple time (only on the command line, not in the configuration file where it should appear only once). See also the "--disable" option for examples. .IP "--disable=, -d " Disable the message, report, category or checker with the given id(s). You can either give multiple identifiers separated by comma (,) or put this option multiple times (only on the command line, not in the configuration file where it should appear only once). You can also use "--disable=all" to disable everything first and then reenable specific checks. For example, if you want to run only the similarities checker, you can use "--disable=all --enable=similarities". If you want to run only the classes checker, but have no Warning level messages displayed, use "--disable=all --enable=classes --disable=W". .SH REPORTS .IP "--output-format=, -f " Set the output format. Available formats are text, parseable, colorized, json and msvs (visual studio). You can also give a reporter class, e.g. mypackage.mymodule.MyReporterClass. [default: text] .IP "--reports=, -r " Tells whether to display a full report or only the messages. [default: no] .IP "--evaluation=" Python expression which should return a score less than or equal to 10. You have access to the variables 'error', 'warning', 'refactor', and 'convention' which contain the number of messages in each category, as well as 'statement' which is the total number of statements analyzed. This score is used by the global evaluation report (RP0004). [default: 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)] .IP "--score=, -s " Activate the evaluation score. [default: yes] .IP "--msg-template=