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/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 109 | nl | ref | function | checker_table.add(tomlkit.nl())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 112 | dumps | ref | function | toml_string = "\n".join(f" {i}" for i in tomlkit.dumps(toml_doc).split("\n"))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 133 | _write_options_page | def | function | def _write_options_page(options: OptionsDataDict, linter: PyLinter) -> None:
"""Create or overwrite the options page."""
sections: list[str] = [get_rst_title("Standard Checkers:", "^")]
found_extensions = _False
for checker, checker_options in options.items():
if not found_extensions and checke... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 135 | get_rst_title | ref | function | sections: list[str] = [get_rst_title("Standard Checkers:", "^")]
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 140 | get_rst_title | ref | function | sections.append(get_rst_title("Extensions:", "^"))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 142 | _create_checker_section | ref | function | sections.append(_create_checker_section(checker, checker_options, linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 150 | write | ref | function | stream.write(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 152 | get_rst_title | ref | function | {get_rst_title("All pylint options", "=")}
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 160 | build_options_page | def | function | def build_options_page(app: Sphinx | None) -> None:
"""Overwrite messages files by printing the documentation to a stream.
Documentation is written in ReST format.
"""
# Create linter, register all checkers and extensions and get all options
linter = PyLinter()
_register_all_checkers_and_extens... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 166 | PyLinter | ref | function | linter = PyLinter()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 167 | _register_all_checkers_and_extensions | ref | function | _register_all_checkers_and_extensions(linter)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 169 | _get_all_options | ref | function | options = _get_all_options(linter)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 172 | _write_options_page | ref | function | _write_options_page(options, linter)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 175 | setup | def | function | def setup(app: Sphinx) -> None:
"""Connects the extension to the Sphinx process."""
# Register callback at the builder-inited Sphinx event
# See https://www.sphinx-doc.org/en/master/extdev/appapi.html
app.connect("builder-inited", build_options_page)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py | doc/exts/pylint_options.py | 179 | connect | ref | function | app.connect("builder-inited", build_options_page)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom.py | examples/custom.py | 12 | MyAstroidChecker | def | class | visit_call |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom.py | examples/custom.py | 44 | visit_call | def | function | def visit_call(self, node: nodes.Call) -> None:
"""Called when a :class:`.nodes.Call` node is visited.
See :mod:`astroid` for the description of available nodes.
"""
if not (
isinstance(node.func, nodes.Attribute)
and isinstance(node.func.expr, nodes.Name)
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom.py | examples/custom.py | 56 | frame | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom.py | examples/custom.py | 61 | register | def | function | def register(linter: "PyLinter") -> None:
"""This required method auto registers the checker during initialization.
:param linter: The linter to register the checker to.
"""
linter.register_checker(MyAstroidChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom.py | examples/custom.py | 66 | register_checker | ref | function | linter.register_checker(MyAstroidChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom.py | examples/custom.py | 66 | MyAstroidChecker | ref | function | linter.register_checker(MyAstroidChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom_raw.py | examples/custom_raw.py | 10 | MyRawChecker | def | class | process_module |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom_raw.py | examples/custom_raw.py | 28 | process_module | def | function | def process_module(self, node: nodes.Module) -> None:
"""Process a module.
the module's content is accessible via node.stream() function
"""
with node.stream() as stream:
for (lineno, line) in enumerate(stream):
if line.rstrip().endswith("\\"):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom_raw.py | examples/custom_raw.py | 33 | stream | ref | function | with node.stream() as stream:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom_raw.py | examples/custom_raw.py | 36 | add_message | ref | function | self.add_message("backslash-line-continuation", line=lineno)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom_raw.py | examples/custom_raw.py | 39 | register | def | function | def register(linter: "PyLinter") -> None:
"""This required method auto registers the checker during initialization.
:param linter: The linter to register the checker to.
"""
linter.register_checker(MyRawChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom_raw.py | examples/custom_raw.py | 44 | register_checker | ref | function | linter.register_checker(MyRawChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/custom_raw.py | examples/custom_raw.py | 44 | MyRawChecker | ref | function | linter.register_checker(MyRawChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/deprecation_checker.py | examples/deprecation_checker.py | 50 | DeprecationChecker | def | class | deprecated_methods deprecated_arguments |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/deprecation_checker.py | examples/deprecation_checker.py | 61 | deprecated_methods | def | function | def deprecated_methods(self) -> set[str]:
"""Callback method called by DeprecatedMixin for every method/function found in the code.
Returns:
collections.abc.Container of deprecated function/method names.
"""
return {"mymodule.deprecated_function", "mymodule.MyClass.depre... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/deprecation_checker.py | examples/deprecation_checker.py | 69 | deprecated_arguments | def | function | def deprecated_arguments(self, method: str) -> tuple[tuple[int | None, str], ...]:
"""Callback returning the deprecated arguments of method/function.
Returns:
collections.abc.Iterable in form:
((POSITION1, PARAM1), (POSITION2: PARAM2) ...)
where
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/deprecation_checker.py | examples/deprecation_checker.py | 93 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(DeprecationChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/deprecation_checker.py | examples/deprecation_checker.py | 94 | register_checker | ref | function | linter.register_checker(DeprecationChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/examples/deprecation_checker.py | examples/deprecation_checker.py | 94 | DeprecationChecker | ref | function | linter.register_checker(DeprecationChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 16 | run_pylint | def | function | def run_pylint(argv: Sequence[str] | None = None) -> None:
"""Run pylint.
argv can be a sequence of strings normally supplied as arguments on the command line
"""
from pylint.lint import Run as PylintRun
try:
PylintRun(argv or sys.argv[1:])
except KeyboardInterrupt:
sys.exit(1)... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 24 | PylintRun | ref | function | PylintRun(argv or sys.argv[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 29 | run_epylint | def | function | def run_epylint(argv: Sequence[str] | None = None) -> NoReturn:
"""Run epylint.
argv can be a list of strings normally supplied as arguments on the command line
"""
from pylint.epylint import Run as EpylintRun
EpylintRun(argv)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 36 | EpylintRun | ref | function | EpylintRun(argv)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 39 | run_pyreverse | def | function | def run_pyreverse(argv: Sequence[str] | None = None) -> NoReturn: # type: ignore[misc]
"""Run pyreverse.
argv can be a sequence of strings normally supplied as arguments on the command line
"""
from pylint.pyreverse.main import Run as PyreverseRun
PyreverseRun(argv or sys.argv[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 46 | PyreverseRun | ref | function | PyreverseRun(argv or sys.argv[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 49 | run_symilar | def | function | def run_symilar(argv: Sequence[str] | None = None) -> NoReturn:
"""Run symilar.
argv can be a sequence of strings normally supplied as arguments on the command line
"""
from pylint.checkers.similar import Run as SimilarRun
SimilarRun(argv or sys.argv[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 56 | SimilarRun | ref | function | SimilarRun(argv or sys.argv[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__init__.py | pylint/__init__.py | 59 | modify_sys_path | def | function | def modify_sys_path() -> None:
"""Modify sys path for execution as Python module.
Strip out the current working directory from sys.path.
Having the working directory in `sys.path` means that `pylint` might
inadvertently import user code from modules having the same name as
stdlib or pylint's own mo... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__main__.py | pylint/__main__.py | 8 | modify_sys_path | ref | function | pylint.modify_sys_path()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__main__.py | pylint/__main__.py | 9 | run_pylint | ref | function | pylint.run_pylint()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__pkginfo__.py | pylint/__pkginfo__.py | 14 | get_numversion_from_version | def | function | def get_numversion_from_version(v: str) -> tuple[int, int, int]:
"""Kept for compatibility reason.
See https://github.com/PyCQA/pylint/issues/4399
https://github.com/PyCQA/pylint/issues/4420,
"""
version = v.replace("pylint-", "")
result_version = []
for number in version.split(".")[0:3]:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/__pkginfo__.py | pylint/__pkginfo__.py | 42 | get_numversion_from_version | ref | function | numversion = get_numversion_from_version(__version__)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/__init__.py | pylint/checkers/__init__.py | 66 | table_lines_from_stats | def | function | def table_lines_from_stats(
stats: LinterStats,
old_stats: LinterStats | None,
stat_type: Literal["duplicated_lines", "message_types"],
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/__init__.py | pylint/checkers/__init__.py | 124 | diff_string | ref | function | diff_string(old_value, new_value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/__init__.py | pylint/checkers/__init__.py | 134 | initialize | def | function | def initialize(linter: PyLinter) -> None:
"""Initialize linter with checkers in this package."""
register_plugins(linter, __path__[0])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/__init__.py | pylint/checkers/__init__.py | 136 | register_plugins | ref | function | register_plugins(linter, __path__[0])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 22 | AsyncChecker | def | class | open visit_asyncfunctiondef visit_asyncwith |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 45 | only_required_for_messages | ref | function | @checker_utils.only_required_for_messages("yield-inside-async-function")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 46 | visit_asyncfunctiondef | def | function | def visit_asyncfunctiondef(self, node: nodes.AsyncFunctionDef) -> None:
for child in node.nodes_of_class(nodes.Yield):
if child.scope() is node and (
sys.version_info[:2] == (3, 5) or isinstance(child, nodes.YieldFrom)
):
self.add_message("yield-inside... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 47 | nodes_of_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 48 | scope | ref | function | if child.scope() is node and (
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 51 | add_message | ref | function | self.add_message("yield-inside-async-function", node=child)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 53 | only_required_for_messages | ref | function | @checker_utils.only_required_for_messages("not-async-context-manager")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 54 | visit_asyncwith | def | function | def visit_asyncwith(self, node: nodes.AsyncWith) -> None:
for ctx_mgr, _ in node.items:
inferred = checker_utils.safe_infer(ctx_mgr)
if inferred is None or inferred is astroid.Uninferable:
continue
if isinstance(inferred, nodes.AsyncFunctionDef):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 56 | safe_infer | ref | function | inferred = checker_utils.safe_infer(ctx_mgr)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 63 | decorated_with | ref | function | if decorated_with(inferred, self._async_generators):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 68 | decorated_with | ref | function | if decorated_with(inferred.parent, self._async_generators):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 78 | has_known_bases | ref | function | if not checker_utils.has_known_bases(inferred):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 84 | match | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 89 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 94 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(AsyncChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 95 | register_checker | ref | function | linter.register_checker(AsyncChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 95 | AsyncChecker | ref | function | linter.register_checker(AsyncChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 39 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(BasicErrorChecker(linter))
linter.register_checker(BasicChecker(linter))
linter.register_checker(NameChecker(linter))
linter.register_checker(DocStringChecker(linter))
linter.register_checker(PassChecker(linter))
linter.register_che... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 40 | register_checker | ref | function | linter.register_checker(BasicErrorChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 40 | BasicErrorChecker | ref | function | linter.register_checker(BasicErrorChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 41 | register_checker | ref | function | linter.register_checker(BasicChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 41 | BasicChecker | ref | function | linter.register_checker(BasicChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 42 | register_checker | ref | function | linter.register_checker(NameChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 42 | NameChecker | ref | function | linter.register_checker(NameChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 43 | register_checker | ref | function | linter.register_checker(DocStringChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 43 | DocStringChecker | ref | function | linter.register_checker(DocStringChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 44 | register_checker | ref | function | linter.register_checker(PassChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 44 | PassChecker | ref | function | linter.register_checker(PassChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 45 | register_checker | ref | function | linter.register_checker(ComparisonChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/__init__.py | pylint/checkers/base/__init__.py | 45 | ComparisonChecker | ref | function | linter.register_checker(ComparisonChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 31 | _BasicChecker | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 62 | report_by_type_stats | def | function | def report_by_type_stats(
sect,
stats: LinterStats,
old_stats: LinterStats | None,
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 76 | get_node_count | ref | function | total = stats.get_node_count(node_type)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 79 | get_undocumented | ref | function | undocumented_node = stats.get_undocumented(node_type)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 83 | get_bad_names | ref | function | badname_node = stats.get_bad_names(node_type)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 89 | get_node_count | ref | function | new = stats.get_node_count(node_type)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 90 | get_node_count | ref | function | old = old_stats.get_node_count(node_type) if old_stats else None
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 91 | diff_string | ref | function | diff_str = lint_utils.diff_string(old, new) if old else None
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 100 | Table | ref | function | sect.append(reporter_nodes.Table(children=lines, cols=6, rheaders=1))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 103 | BasicChecker | def | class | __init__ open visit_if visit_ifexp visit_comprehension _check_using_constant_test visit_module visit_classdef visit_expr _filter_vararg _has_variadic_argument visit_lambda visit_functiondef _check_dangerous_default visit_return visit_continue visit_break visit_raise _check_misplaced_format_function visit_call visit_ass... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 263 | reset_node_count | ref | function | self.linter.stats.reset_node_count()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 265 | only_required_for_messages | ref | function | @utils.only_required_for_messages(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 268 | visit_if | def | function | def visit_if(self, node: nodes.If) -> None:
self._check_using_constant_test(node, node.test)
@utils.only_required_for_messages(
"using-constant-test", "missing-parentheses-for-call-in-test"
)
def visit_ifexp(self, node: nodes.IfExp) -> None:
self._check_using_constant_test(node,... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 269 | _check_using_constant_test | ref | function | self._check_using_constant_test(node, node.test)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 271 | only_required_for_messages | ref | function | @utils.only_required_for_messages(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 274 | visit_ifexp | def | function | def visit_ifexp(self, node: nodes.IfExp) -> None:
self._check_using_constant_test(node, node.test)
@utils.only_required_for_messages(
"using-constant-test", "missing-parentheses-for-call-in-test"
)
def visit_comprehension(self, node: nodes.Comprehension) -> None:
if node.ifs:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 275 | _check_using_constant_test | ref | function | self._check_using_constant_test(node, node.test)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 277 | only_required_for_messages | ref | function | @utils.only_required_for_messages(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/base/basic_checker.py | pylint/checkers/base/basic_checker.py | 280 | visit_comprehension | def | function | def visit_comprehension(self, node: nodes.Comprehension) -> None:
if node.ifs:
for if_test in node.ifs:
self._check_using_constant_test(node, if_test)
def _check_using_constant_test(self, node, test):
const_nodes = (
nodes.Module,
nodes.Genera... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.