/<[P-udZddlmZddlZddlZddlmZddlmZm Z ddl m Z m Z m Z mZmZmZmZmZmZmZmZmZmZmZmZddlmZerddlmZmZdd ZddZ dS)zJFunctions that creates the basic options for the Run and PyLinter classes.) annotationsN) TYPE_CHECKING) constants interfaces)_DisableAction_DoNothingAction _EnableAction_ErrorsOnlyModeAction_FullDocumentationAction_GenerateConfigFileAction_GenerateRCFileAction_ListCheckGroupsAction_ListConfidenceLevelsAction_ListExtensionsAction_ListMessagesAction_ListMessagesEnabledAction_LongHelpAction_MessageHelpAction_OutputFormatAction)Options)PyLinterRunlinterrreturnrc"ddddddgitjddfdd d d tjd fd dfddd gddfddddddfddddddfddtdd d!d"d#d$|id%fd&d'ddd(d"d)d*fd+d,d-d"d.d/d0fd1dddd2d"d3d*fd4d5d6d7d8dfd9d:dd;dt jd?d@dAt jdBdCfdDtdEdd;dFd?dGd$|idHfdItdJd;ddKd?dLd$|idMfdNd,d:dOd"dPdQfdRdSdTdUdVdWdXfdYddd'ddZd[fd\dSd]d^d_dfd`ddagdbdfdcddagdddfdeddddfdfdgdhd'didjdkfdldhd'didmdkfdndodpddqdfdrddsd'dtdfdutj dvdwdxdydzdfd{ddd|d}dfd~d'ddddfdd'ddddffS)z,Return the options used in a PyLinter class.ignorecsvz[,...] black_list old_nameszIFiles or directories to be skipped. They should be base names, not paths.)typemetavardestkwargsdefaulthelpzignore-patterns regexp_csvz[,...] black_list_rez^\.#zFiles or directories matching the regular expression patterns are skipped. The regex matches against base names, not paths. The default value ignores Emacs file locks)r r!r"r$r%z ignore-pathsregexp_paths_csva Add files or directories matching the regular expressions patterns to the ignore-list. The regex matches against paths and can be in Posix or Windows format. Because '\\' represents the directory delimiter on Windows systems, it can't be used as an escape character.)r r!r$r% persistentTynzz,Pickle collected data for later comparisons.)r$r r!r%z load-pluginsz ztList of plugins (as comma separated values of python module names) to load, usually to register additional checkers.z output-formattextc|SNr+)xs j/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pylint/lint/base_options.pyz&_make_linter_options..esazfReportszSet 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.r)r$actioncallbackr!shortgroupr%r#reportsFrzzfmax(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))agPython expression which should return a score less than or equal to 10. You have access to the variables 'fatal', 'error', 'warning', 'refactor', 'convention', and 'info' 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).)r r!r8r$r%scoreszActivate the evaluation score.z fail-under floatzzGSpecify a score threshold under which the program will exit with error.zfail-onz zReturn non-zero exit code if any of these messages/categories are detected, even if score is above --fail-under value. Syntax same as enable. Messages specified are enabled, while categories only check already-enabled messages. confidencezzMessages controlz]Only show warnings with the listed confidence levels. Leave empty to show all. Valid levels: z, .)r r!r$r8r%enablec|Sr.r+x1x2x3x4s r0r1z&_make_linter_options..2r2ea/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.)r5r6r$r!r7r8r%r#disablec|Sr.r+rFs r0r1z&_make_linter_options..rKr2dadDisable 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 re-enable 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".)r5r6r!r$r7r8r%r#z msg-templatez