Method: pylint.checkers.similar.SimilarChecker.process_module
Calls: 1155, Exceptions: 0, Paths: 1Back
Path 1: 1155 calls (1.0)
Module (1155)
1def process_module(self, node: nodes.Module) -> None:
2 """Process a module.
3
4 the module's content is accessible via the stream object
5
6 stream must implement the readlines method
7 """
8 if self.linter.current_name is None:
9 warnings.warn(
10 (
11 "In pylint 3.0 the current_name attribute of the linter object should be a string. "
12 "If unknown it should be initialized as an empty string."
13 ),
14 DeprecationWarning,
15 )
16 with node.stream() as stream:
17 self.append_stream(self.linter.current_name, stream, node.file_encoding) # type: ignore[arg-type]