fname stringlengths 63 176 | rel_fname stringclasses 706
values | line int64 -1 4.5k | name stringlengths 1 81 | kind stringclasses 2
values | category stringclasses 2
values | info stringlengths 0 77.9k ⌀ |
|---|---|---|---|---|---|---|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,899 | _raise_name_warning | ref | function | self._raise_name_warning(prevalent_group, *args)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,901 | check_messages | ref | function | @utils.check_messages("disallowed-name", "invalid-name", "assign-to-new-keyword")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,902 | visit_classdef | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,903 | _check_assign_to_new_keyword_violation | ref | function | self._check_assign_to_new_keyword_violation(node.name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,904 | _check_name | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,906 | instance_attr_ancestors | ref | function | if not any(node.instance_attr_ancestors(attr)):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,907 | _check_name | ref | function | self._check_name("attr", attr, anodes[0])
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,909 | check_messages | ref | function | @utils.check_messages("disallowed-name", "invalid-name", "assign-to-new-keyword")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,910 | visit_functiondef | def | function | def visit_functiondef(self, node: nodes.FunctionDef) -> None:
self._check_nonlocal_and_global(node)
self._check_name_used_prior_global(node)
if not redefined_by_decorator(
node
) and not utils.is_registered_in_singledispatch_function(node):
self._check_redefin... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,913 | _check_assign_to_new_keyword_violation | ref | function | self._check_assign_to_new_keyword_violation(node.name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,915 | is_method | ref | function | if node.is_method():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,916 | overrides_a_method | ref | function | if utils.overrides_a_method(node.parent.frame(future=True), node.name):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,916 | frame | ref | function | if utils.overrides_a_method(node.parent.frame(future=True), node.name):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,920 | has_known_bases | ref | function | if utils.has_known_bases(node.parent.frame(future=True))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,920 | frame | ref | function | if utils.has_known_bases(node.parent.frame(future=True))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,924 | _check_name | ref | function | self._check_name(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,925 | _determine_function_name_type | ref | function | _determine_function_name_type(node, config=self.config),
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,933 | _recursive_check_names | ref | function | self._recursive_check_names(args)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,937 | check_messages | ref | function | @utils.check_messages("disallowed-name", "invalid-name")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,938 | visit_global | def | function | def visit_global(self, node: nodes.Global) -> None:
for name in node.names:
self._check_name("const", name, node)
@utils.check_messages("disallowed-name", "invalid-name", "assign-to-new-keyword")
def visit_assignname(self, node: nodes.AssignName) -> None:
"""Check module level a... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,940 | _check_name | ref | function | self._check_name("const", name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,942 | check_messages | ref | function | @utils.check_messages("disallowed-name", "invalid-name", "assign-to-new-keyword")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,943 | visit_assignname | def | function | def visit_assignname(self, node: nodes.AssignName) -> None:
"""Check module level assigned names."""
self._check_assign_to_new_keyword_violation(node.name, node)
frame = node.frame(future=_True)
assign_type = node.assign_type()
if isinstance(assign_type, nodes.Comprehension):... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,945 | _check_assign_to_new_keyword_violation | ref | function | self._check_assign_to_new_keyword_violation(node.name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,946 | frame | ref | function | frame = node.frame(future=True)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,947 | assign_type | ref | function | assign_type = node.assign_type()
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,949 | _check_name | ref | function | self._check_name("inlinevar", node.name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,952 | safe_infer | ref | function | if isinstance(utils.safe_infer(assign_type.value), nodes.ClassDef):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,953 | _check_name | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,956 | _redefines_import | ref | function | elif not _redefines_import(node) and isinstance(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,957 | safe_infer | ref | function | utils.safe_infer(assign_type.value), nodes.Const
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,959 | _check_name | ref | function | self._check_name("const", node.name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,962 | is_assign_name_annotated_with | ref | function | ) and utils.is_assign_name_annotated_with(node, "Final"):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,963 | _check_name | ref | function | self._check_name("const", node.name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,966 | argnames | ref | function | if node.name in frame and node.name not in frame.argnames():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,967 | _redefines_import | ref | function | if not _redefines_import(node):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,968 | _check_name | ref | function | self._check_name("variable", node.name, node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,970 | local_attr_ancestors | ref | function | if not list(frame.local_attr_ancestors(node.name)):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,971 | ancestors | ref | function | for ancestor in frame.ancestors():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,974 | root | ref | function | and ancestor.root().name == "enum"
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,975 | is_assign_name_annotated_with | ref | function | or utils.is_assign_name_annotated_with(node, "Final")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,977 | _check_name | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,980 | _check_name | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,982 | _recursive_check_names | def | function | def _recursive_check_names(self, args):
"""Check names in a possibly recursive list <arg>."""
for arg in args:
if isinstance(arg, nodes.AssignName):
self._check_name("argument", arg.name, arg)
else:
self._recursive_check_names(arg.elts)
de... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,986 | _check_name | ref | function | self._check_name("argument", arg.name, arg)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,988 | _recursive_check_names | ref | function | self._recursive_check_names(arg.elts)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,990 | _find_name_group | def | function | def _find_name_group(self, node_type):
return self._name_group.get(node_type, node_type)
def _raise_name_warning(
self,
prevalent_group: Optional[str],
node: nodes.NodeNG,
node_type: str,
name: str,
confidence,
warning: str = "invalid-name",
)... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 1,993 | _raise_name_warning | def | function | def _raise_name_warning(
self,
prevalent_group: Optional[str],
node: nodes.NodeNG,
node_type: str,
name: str,
confidence,
warning: str = "invalid-name",
) -> None:
type_label = constants.HUMAN_READABLE_TYPES[node_type]
hint = self._name_hin... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,017 | add_message | ref | function | self.add_message(warning, node=node, args=args, confidence=confidence)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,018 | increase_bad_name | ref | function | self.linter.stats.increase_bad_name(node_type, 1)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,020 | _name_allowed_by_regex | def | function | def _name_allowed_by_regex(self, name: str) -> bool:
return name in self.config.good_names or any(
pattern.match(name) for pattern in self._good_names_rgxs_compiled
)
def _name_disallowed_by_regex(self, name: str) -> bool:
return name in self.config.bad_names or any(
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,025 | _name_disallowed_by_regex | def | function | def _name_disallowed_by_regex(self, name: str) -> bool:
return name in self.config.bad_names or any(
pattern.match(name) for pattern in self._bad_names_rgxs_compiled
)
def _check_name(self, node_type, name, node, confidence=interfaces.HIGH):
"""Check for a name using the typ... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,030 | _check_name | def | function | def _check_name(self, node_type, name, node, confidence=interfaces.HIGH):
"""Check for a name using the type's regexp."""
def _should_exempt_from_invalid_name(node):
if node_type == "variable":
inferred = utils.safe_infer(node)
if isinstance(inferred, nod... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,033 | _should_exempt_from_invalid_name | def | function | def _should_exempt_from_invalid_name(node):
if node_type == "variable":
inferred = utils.safe_infer(node)
if isinstance(inferred, nodes.ClassDef):
return _True
return _False
if self._name_allowed_by_regex(name=name):
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,035 | safe_infer | ref | function | inferred = utils.safe_infer(node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,040 | _name_allowed_by_regex | ref | function | if self._name_allowed_by_regex(name=name):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,042 | _name_disallowed_by_regex | ref | function | if self._name_disallowed_by_regex(name=name):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,043 | increase_bad_name | ref | function | self.linter.stats.increase_bad_name(node_type, 1)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,044 | add_message | ref | function | self.add_message("disallowed-name", node=node, args=name)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,049 | _is_multi_naming_match | ref | function | if _is_multi_naming_match(match, node_type, confidence):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,050 | _find_name_group | ref | function | name_group = self._find_name_group(node_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,055 | _should_exempt_from_invalid_name | ref | function | if match is None and not _should_exempt_from_invalid_name(node):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,056 | _raise_name_warning | ref | function | self._raise_name_warning(None, node, node_type, name, confidence)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,058 | _check_assign_to_new_keyword_violation | def | function | def _check_assign_to_new_keyword_violation(self, name, node):
keyword_first_version = self._name_became_keyword_in_version(
name, self.KEYWORD_ONSET
)
if keyword_first_version is not None:
self.add_message(
"assign-to-new-keyword",
node... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,059 | _name_became_keyword_in_version | ref | function | keyword_first_version = self._name_became_keyword_in_version(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,063 | add_message | ref | function | self.add_message(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,071 | _name_became_keyword_in_version | def | function | def _name_became_keyword_in_version(name, rules):
for version, keywords in rules.items():
if name in keywords and sys.version_info < version:
return ".".join(str(v) for v in version)
return None
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,078 | DocStringChecker | def | class | open visit_module visit_classdef visit_functiondef _check_docstring |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,137 | reset_undocumented | ref | function | self.linter.stats.reset_undocumented()
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,139 | check_messages | ref | function | @utils.check_messages("missing-docstring", "empty-docstring")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,140 | visit_module | def | function | def visit_module(self, node: nodes.Module) -> None:
self._check_name("module", node.name.split(".")[-1], node)
self._bad_names = {}
def leave_module(self, _: nodes.Module) -> None:
for all_groups in self._bad_names.values():
if len(all_groups) < 2:
continue
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,141 | _check_docstring | ref | function | self._check_docstring("module", node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,143 | check_messages | ref | function | @utils.check_messages("missing-docstring", "empty-docstring")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,144 | visit_classdef | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,146 | _check_docstring | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,148 | check_messages | ref | function | @utils.check_messages("missing-docstring", "empty-docstring")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,149 | visit_functiondef | def | function | def visit_functiondef(self, node: nodes.FunctionDef) -> None:
self._check_nonlocal_and_global(node)
self._check_name_used_prior_global(node)
if not redefined_by_decorator(
node
) and not utils.is_registered_in_singledispatch_function(node):
self._check_redefin... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,151 | is_method | ref | function | ftype = "method" if node.is_method() else "function"
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,153 | is_property_setter | ref | function | is_property_setter(node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,154 | is_property_deleter | ref | function | or is_property_deleter(node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,155 | is_overload_stub | ref | function | or is_overload_stub(node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,159 | frame | ref | function | if isinstance(node.parent.frame(future=True), nodes.ClassDef):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,163 | has_known_bases | ref | function | if utils.has_known_bases(node.parent.frame(future=True))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,163 | frame | ref | function | if utils.has_known_bases(node.parent.frame(future=True))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,167 | frame | ref | function | for ancestor in node.parent.frame(future=True).ancestors():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,167 | ancestors | ref | function | for ancestor in node.parent.frame(future=True).ancestors():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,168 | qname | ref | function | if ancestor.qname() == "builtins.object":
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,175 | _check_docstring | ref | function | self._check_docstring(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,178 | frame | ref | function | elif isinstance(node.parent.frame(future=True), nodes.Module):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,179 | _check_docstring | ref | function | self._check_docstring(ftype, node) # type: ignore[arg-type]
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,185 | _check_docstring | def | function | def _check_docstring(
self,
node_type: Literal["class", "function", "method", "module"],
node,
report_missing=_True,
confidence=interfaces.HIGH,
):
"""Check if the node has a non-empty docstring."""
docstring = node.doc
if docstring is None:
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,195 | _infer_dunder_doc_attribute | ref | function | docstring = _infer_dunder_doc_attribute(node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,200 | get_node_last_lineno | ref | function | lines = utils.get_node_last_lineno(node) - node.lineno
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,220 | safe_infer | ref | function | func = utils.safe_infer(node.body[0].value.func)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,233 | add_message | ref | function | self.add_message(message, node=node, confidence=confidence)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,239 | add_message | ref | function | self.add_message(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,244 | PassChecker | def | class | visit_pass |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,255 | check_messages | ref | function | @utils.check_messages("unnecessary-pass")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,256 | visit_pass | def | function | def visit_pass(self, node: nodes.Pass) -> None:
if len(node.parent.child_sequence(node)) > 1 or (
isinstance(node.parent, (nodes.ClassDef, nodes.FunctionDef))
and (node.parent.doc is not None)
):
self.add_message("unnecessary-pass", node=node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 2,257 | child_sequence | ref | function | if len(node.parent.child_sequence(node)) > 1 or (
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.