Method: pylint.config.arguments_manager._ArgumentsManager._add_arguments_to_parser
Calls: 169985, Exceptions: 22058, Paths: 3Back
Path 1: 147927 calls (0.87)
'Basic' (35363) 'Main' (29308) 'Typecheck' (12551) 'Design' (12544) 'Imports' (10314) 'Variables' (8029) 'Format' (8015) 'Reports' (5952) 'Spelling' (...
None (64681) 'Try to find bugs in the code using type inference.' (12551) 'Checker of potential misdesigns.' (12540) 'BaseChecker for import statement...
_StoreArgument (135190) _CallableArgument (6602) _StoreTrueArgument (3127) _StoreOldNamesArgument (1837) _StoreNewNamesArgument (1141) _ExtendArgument...
1def _add_arguments_to_parser(
2 self, section: str, section_desc: str | None, argument: _Argument
3 ) -> None:
4 """Add an argument to the correct argument section/group."""
5 try:
6 section_group = self._argument_groups_dict[section]
7 except KeyError:
8 if section_desc:
9 section_group = self._arg_parser.add_argument_group(
10 section, section_desc
11 )
12 else:
13 section_group = self._arg_parser.add_argument_group(title=section)
14 self._argument_groups_dict[section] = section_group
15 self._add_parser_option(section_group, argument)
Path 2: 19390 calls (0.11)
'Reports' (1488) 'Messages control' (1488) 'Miscellaneous' (1148) 'Variables' (1147) 'Imports' (1146) 'Format' (1145) 'Typecheck' (1141) 'Similarities...
'Options related to output formatting and reporting' (1488) 'Options controlling analysis messages' (1488) 'BaseChecker for encoding issues.' (1148) '...
_StoreArgument (17607) _CallableArgument (1747) _StoreOldNamesArgument (30) _StoreTrueArgument (6)
KeyError (19390)
1def _add_arguments_to_parser(
2 self, section: str, section_desc: str | None, argument: _Argument
3 ) -> None:
4 """Add an argument to the correct argument section/group."""
5 try:
6 section_group = self._argument_groups_dict[section]
7 except KeyError:
8 if section_desc:
9 section_group = self._arg_parser.add_argument_group(
10 section, section_desc
11 )
12 else:
13 section_group = self._arg_parser.add_argument_group(title=section)
14 self._argument_groups_dict[section] = section_group
15 self._add_parser_option(section_group, argument)
Path 3: 2668 calls (0.02)
'Main' (1488) 'Basic' (1144) 'Deprecated_builtins' (24) 'Dummy_plugin' (8) '' (2) 'Checker' (2)
None (2668)
_StoreOldNamesArgument (1229) _StoreArgument (1177) _CallableArgument (259) _StoreTrueArgument (3)
KeyError (2668)
1def _add_arguments_to_parser(
2 self, section: str, section_desc: str | None, argument: _Argument
3 ) -> None:
4 """Add an argument to the correct argument section/group."""
5 try:
6 section_group = self._argument_groups_dict[section]
7 except KeyError:
8 if section_desc:
9 section_group = self._arg_parser.add_argument_group(
10 section, section_desc
11 )
12 else:
13 section_group = self._arg_parser.add_argument_group(title=section)
14 self._argument_groups_dict[section] = section_group
15 self._add_parser_option(section_group, argument)