Edit File: base_options.cpython-311.pyc
� ����s�d�S���������������������������d�Z�ddlmZ�ddlZddlZddlmZ�ddlmZm Z �ddl mZmZm Z mZmZmZmZmZmZmZmZmZmZmZmZ�ddlmZ�erddlmZmZ�dd �Zdd�Z 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)�PyLinter�Run�linterr����returnr���c�����������"�����������ddddddgit�����������j��������dd�fdd d dt����������j��������d������������fd d�fddd g�dd�fdddddd�fdddddd�fddt����������d��d d!d"d#d$|�id%�fd&d'ddd(d"d)d*�fd+d,d-d"d.d/d0�fd1dddd2d"d3d*�fd4d5d6d7d8d�fd9d:dd;d<d�fd=d=d>t ����������j��������d?d@dA���������������������t ����������j����������������������dB�dC�fdDt����������dE��dd;dFd?dGd$|�idH�fdIt����������dJ��d;ddKd?dLd$|�idM�fdNd,d:dOd"dPdQ�fdRdSdTdUdVdWdX�fdYddd'ddZd[�fd\dSd]d^d_d�fd`ddag�dbd�fdcddag�ddd�fdeddddfd�fdgdhd'didjdk�fdldhd'didmdk�fdndodpddqd�fdrddsd'dtd�fdut����������j��������dvdw����������dxdydzd�fd{ddd|d}d�fd~d'dddd�fd�d'ddd�d�ffS�)�z,Return the options used in a PyLinter class.�ignore�csvz<file>[,<file>...]� black_list� old_nameszIFiles or directories to be skipped. They should be base names, not paths.)�type�metavar�dest�kwargs�default�helpzignore-patterns� regexp_csvz<pattern>[,<pattern>...]� black_list_rez^\.#z�Files 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%���zignore-paths�regexp_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%���� persistentT�ynz<y or n>z,Pickle collected data for later comparisons.)r$���r ���r!���r%���zload-pluginsz <modules>��ztList of plugins (as comma separated values of python module names) to load, usually to register additional checkers.z output-format�textc����������������������|�S��Nr+���)�xs��� �i/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/pylint/lint/base_options.py�<lambda>z&_make_linter_options.<locals>.<lambda>e���s������a�������z<format>�f�Reportsz�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.r���)r$����action�callbackr!����short�groupr%���r#����reportsF�rz<Tells whether to display a full report or only the messages.)r$���r ���r!���r7���r8���r%���� evaluation�stringz<python_expression>zfmax(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))ag��Python 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!���r8���r$���r%����score�szActivate the evaluation score.z fail-under� ����floatz<score>zGSpecify a score threshold under which the program will exit with error.zfail-on��z <msg ids>z�Return 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.� confidencez<levels>zMessages controlz]Only show warnings with the listed confidence levels. Leave empty to show all. Valid levels: z, �.)r ���r!���r$���r8���r%����enablec����������������������|�S�r.���r+�����x1�x2�x3�x4s��� r0���r1���z&_make_linter_options.<locals>.<lambda>�����������2��r2����ea/��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.)r5���r6���r$���r!���r7���r8���r%���r#����disablec����������������������|�S�r.���r+���rF���s��� r0���r1���z&_make_linter_options.<locals>.<lambda>����rK���r2����dad��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 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".)r5���r6���r!���r$���r7���r8���r%���r#���zmsg-templatez <template>z�Template used to display messages. This is a python new-style format string used to format the message information. See doc for all details.)r ���r$���r!���r8���r%����jobs�intz <n-processes>�j����z�Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the number of processors available to use, and will cap the count on Windows to avoid hangs.)r ���r!���r7���r$���r%���zunsafe-load-any-extensionzAllow loading of arbitrary C extensions. Extensions are imported into the active Python interpreter and may run arbitrary code.)r ���r!���r$����hider%���zlimit-inference-resultsz<number-of-results>�d���z�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.zextension-pkg-allow-listz<pkg[,pkg]>z�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.zextension-pkg-whitelista��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. (This is an alternative name to extension-pkg-allow-list for backward compatibility.)zsuggestion-modez�When enabled, pylint would attempt to guess common misconfiguration and emit user-friendly hints instead of false-positive error messages.z exit-zero� store_truez<flag>z�Always return a 0 (non-error) status code, even if lint errors are found. This is primarily useful in continuous integration scripts.)r5���r$���r!���r%���z from-stdinzlInterpret the stdin as a python script, whose filename needs to be passed as the module_or_package argument.zsource-roots�glob_paths_csvz<path>[,<path>...]z�Add paths to the list of the source roots. Supports globbing patterns. The source root is an absolute path or a path relative to the current working directory used to determine a package namespace for modules located under the source root.� recursivez<yn>z@Discover python modules and packages in the file system subtree.z py-versionN����� py_versionz<py_version>zkMinimum Python version to use for version dependent checks. Will default to the version used to run pylint.zignored-modulesz<module names>a$��List of module names for which member attributes should not be checked (useful for modules/projects where namespaces are manipulated during runtime and thus existing member attributes cannot be deduced by static analysis). It supports qualified module names, as well as Unix pattern matching.zanalyse-fallback-blocksz�Analyse import fallback blocks. This can be used to support both Python 2 and 3 compatible code, which means that the block might have code that exists only in one or another interpreter, leading to false positives when analysed.zclear-cache-post-runzbClear in-memory caches upon conclusion of linting. Useful if running pylint in a server-like mode.)r����DEFAULT_IGNORE_LIST�re�compiler���r����CONFIDENCE_LEVEL_NAMES�joinr ���r����sys�version_info)r���s��� r0����_make_linter_optionsrb���%���s������� ��/�$�&���7�$�8�8� �� � �� �$�5�'��J�w�/�/�1�+� �� � �� �*�5��O� �� � �� ���%�F� �� � �� ��&��'� �� � �� �!�-�'�K�%��"�#��$�V�,� �� � �"� � ��%��"�� �� � �� � �0�"�2�.� �� � �$� ���%��"�8� �� � �� ���$�a� �� � �� ���&�i� �� � �� �$�%�%�<�+�k�;?�9�9�Z�Ef�;g�;g�k��k��k� �� � �� �'�5�5��&��+�@��$�V�,� �� � �&� �(�5�5�&���+�@��$�V�,�' �� � �2� � ��'�"�/� �� � � � ��*���7� �� � �� (��%� ��/� �� � �� &��0��E� �� � �� '��(��'� �� � �� &��(��M� �� � � � ��%��8� �� � �� �&� �#�6� �� � �� �&� �#�L� �� � �� �(�/��� �� � �� ��!� �Z� �� � �� ��+�B�Q�B�/�$�)�F� �� � �� ���+�B� �� � �� &� ��%�+� �� � �� #� ��%�B� �� � �_y��yr2����selfr���c����������������������dt�����������i�dddd�fdt�����������i�dddd�fdt�����������i�d d �fdt����������d|�idd dd�fdt����������d|�idddd�fdt����������d|�idddd�fdt����������d|�idddd�fdt ����������d|�idddd�fdt����������d|�idddd�fdt����������d|�idddd�fdt����������d|�idddd�fdt����������d|�idddd�fdt����������d|�idd dd!�fd"t�����������i�d#d$dd%d&�fd't�����������i�d(dd%d)�fd*t����������d|�id+ddd,�ffS�)-z'Return the options used in a Run class.�rcfile�Commandsz%Specify a configuration file to load.T)r5���r#���r8���r%����hide_from_config_file�outputzSpecify an output file.z init-hookzRPython code to execute, usually for sys.path manipulation such as pygtk.require().)r5���r#���r%���zhelp-msgr���zqDisplay a help message for the given message id and exit. The value may be a comma separated list of message ids.z list-msgsziDisplay a list of all pylint's messages divided by whether they are emittable with the given interpreter.zlist-msgs-enabledzeDisplay a list of what messages are enabled, disabled and non-emittable with the given configuration.zlist-groupszList pylint's message groups.zlist-conf-levelsz$Generate pylint's confidence levels.zlist-extensionszList available extensions.zfull-documentationz%Generate pylint's full documentation.zgenerate-rcfilez�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.zgenerate-toml-configz�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. The config is in the .toml format.zerrors-only�Ez�In error mode, messages with a category besides ERROR or FATAL are suppressed, and no reports are done by default. Error mode is compatible with disabling specific errors. )r5���r#���r7���r%���rg����verbose�vzBIn verbose mode, extra non-checker-related info will be displayed.rA���)r5���r#���r7���r%���rg���r!���zenable-all-extensionszgLoad and enable all available extensions. Use --list-extensions to see a list all available extensions.)r5���r#���r%���rg���r!���z long-helpzShow more verbose help.)r5���r#���r%���r8���rg���)r���r���r���r���r���r���r���r���r ���r���r ���r���)rc���s��� r0����_make_run_optionsrl������s������� �*��#�?�)-� �� � �� �*��#�1�)-� �� � �� �*��8� �� � �� �,� �$�-�#�P�)-� �� � �� �-� �$�-�#�A�)-� �� � �� �4� �$�-�#�K�)-� �� � �� �0� �$�-�#�7�)-� �� � �� �5� �$�-�#�>�)-� �� � �� �/� �$�-�#�4�)-� �� � �� !�2� �$�-�#�?�)-� �� � �� �/� �$�-�#�!��*.� �� � �� #�3� �$�-�#�D��*.� �� � �� �/� �$�-��L��*.� �� � �� �*���%�)-�� �� � �� $�*��P�)-�� �� � �� �)� �$�-�1�#�)-� �� � �In��nr2���)r���r���r���r���)rc���r���r���r���)!�__doc__� __future__r���r\���r`����typingr����pylintr���r����pylint.config.callback_actionsr���r���r ���r ���r���r���r ���r���r���r���r���r���r���r���r���� pylint.typingr����pylint.lintr���r���rb���rl���r+���r2���r0����<module>rt������sw���� �Q��P��"��"��"��"��"��"�� � � � �� � � � �� �� �� �� �� �� ��(��(��(��(��(��(��(��(��������������������������������������������������������������������"�"��!��!��!��!��!���*�)�)�)�)�)�)�)�)�{��{��{��{�|p��p��p��p��p��pr2���