summaryrefslogtreecommitdiff
path: root/pylint/lint/pylinter.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/lint/pylinter.py')
-rw-r--r--pylint/lint/pylinter.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py
index 49ddb29ad..8b1993b4e 100644
--- a/pylint/lint/pylinter.py
+++ b/pylint/lint/pylinter.py
@@ -542,7 +542,8 @@ class PyLinter(
pylintrc=None,
):
"""Some stuff has to be done before ancestors initialization...
- messages store / checkers / reporter / astroid manager"""
+ messages store / checkers / reporter / astroid manager
+ """
# Attributes for reporters
self.reporter: Union[reporters.BaseReporter, reporters.MultiReporter]
if reporter:
@@ -851,7 +852,8 @@ class PyLinter(
def process_tokens(self, tokens):
"""Process tokens from the current module to search for module/block level
- options."""
+ options.
+ """
control_pragmas = {"disable", "disable-next", "enable"}
prev_line = None
saw_newline = True
@@ -1464,7 +1466,8 @@ class PyLinter(
end_col_offset: Optional[int],
) -> None:
"""After various checks have passed a single Message is
- passed to the reporter and added to stats"""
+ passed to the reporter and added to stats
+ """
message_definition.check_message_definition(line, node)
# Look up "location" data of node if not yet supplied
@@ -1698,7 +1701,8 @@ class PyLinter(
self, msgid_or_symbol: str, line: Optional[int], is_disabled: bool = True
) -> None:
"""If the msgid is a numeric one, then register it to inform the user
- it could furnish instead a symbolic msgid."""
+ it could furnish instead a symbolic msgid.
+ """
if msgid_or_symbol[1:].isdigit():
try:
symbol = self.msgs_store.message_id_store.get_symbol(