Method: pylint.config.arguments_manager._ArgumentsManager._parse_configuration_file
Calls: 1076, Exceptions: 3, Paths: 3Back
Path 1: 1073 calls (1.0)
['--disable', '\nsuppressed-message,\nlocally-disabled,\nuseless-suppression,'] (682) [] (42) ['--min_pyver', '3.8'] (34) ['--min_pyver', '3.7'] (27) ...
1def _parse_configuration_file(self, arguments: list[str]) -> None:
2 """Parse the arguments found in a configuration file into the namespace."""
3 try:
4 self.config, parsed_args = self._arg_parser.parse_known_args(
5 arguments, self.config
6 )
7 except SystemExit:
8 sys.exit(32)
9 unrecognized_options: list[str] = []
10 for opt in parsed_args:
11 if opt.startswith("--"):
12 unrecognized_options.append(opt[2:])
13 if unrecognized_options:
14 raise _UnrecognizedOptionError(options=unrecognized_options)
Path 2: 2 calls (0.0)
['--no_docstring_rgx', '^(?!__init__$)_'] (1) ['--unknown-option', 'yes', '--jobs', '10', '--another-unknown-option', 'yes'] (1)
_UnrecognizedOptionError (2)
1def _parse_configuration_file(self, arguments: list[str]) -> None:
2 """Parse the arguments found in a configuration file into the namespace."""
3 try:
4 self.config, parsed_args = self._arg_parser.parse_known_args(
5 arguments, self.config
6 )
7 except SystemExit:
8 sys.exit(32)
9 unrecognized_options: list[str] = []
10 for opt in parsed_args:
11 if opt.startswith("--"):
12 unrecognized_options.append(opt[2:])
13 if unrecognized_options:
14 raise _UnrecognizedOptionError(options=unrecognized_options)
Path 3: 1 calls (0.0)
['--no', ''] (1)
SystemExit (1)
1def _parse_configuration_file(self, arguments: list[str]) -> None:
2 """Parse the arguments found in a configuration file into the namespace."""
3 try:
4 self.config, parsed_args = self._arg_parser.parse_known_args(
5 arguments, self.config
6 )
7 except SystemExit:
8 sys.exit(32)
9 unrecognized_options: list[str] = []
10 for opt in parsed_args:
11 if opt.startswith("--"):
12 unrecognized_options.append(opt[2:])
13 if unrecognized_options:
14 raise _UnrecognizedOptionError(options=unrecognized_options)