bgddlmZddlZddlmZddlmZddlmZmZddl m Z ddl m Z ddl mZer dd lmZdd lmZGd d ZdS) ) annotationsN)Callable)copy) TYPE_CHECKINGTextIO)Message) BaseReporter) LinterStats)PyLinter)SectionceZdZdZdZdZ d+d,d Zed-d Zej d+d.dZd/dZ ed0dZ ed1dZ e j d2dZ d3dZ d4d5dZd6dZd7d!Zd8d%Zd9d*ZdS): MultiReporterz+Reports messages and layouts in plain text._internal_multi_reporterN sub_reporterslist[BaseReporter]close_output_filesCallable[[], None]output TextIO | Nonec||_||_tjtjz|_d|_||_g|_dSN) _sub_reportersrosgetcwdsep_path_strip_prefix_linteroutmessages)selfrrrs p/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/reporters/multi_reporter.py__init__zMultiReporter.__init__!sB ,"4"$)++"6(, ') returnc|jSr)_MultiReporter__outr!s r"rzMultiReporter.out.s zr$Nonec6d|_|tddS)zMultiReporter doesn't have its own output. This method is only provided for API parity with BaseReporter and should not be called with non-None values for 'output'. Nz-MultiReporter does not support direct output.)r'NotImplementedError)r!rs r"rzMultiReporter.out2s(  %&UVV V  r$c.|dSr)rr(s r"__del__zMultiReporter.__del__=s !!!!!r$strc|jSr)rr(s r"path_strip_prefixzMultiReporter.path_strip_prefix@s &&r$PyLinter | Nonec|jSr)rr(s r"linterzMultiReporter.linterDs |r$valuer c6||_|jD] }||_ dSr)rrr3)r!r4reps r"r3zMultiReporter.linterHs. &  CCJJ  r$msgrc^|jD]$}|t|%dS)z3Handle a new message triggered on the current file.N)rhandle_messager)r!r7r6s r"r9zMultiReporter.handle_messageNs;& * *C   tCyy ) ) ) ) * *r$stringcD|jD]}||dS)z"Write a line in the output buffer.N)rwriteln)r!r:r6s r"r<zMultiReporter.writelnTs3&  C KK      r$layoutr cD|jD]}||dS)z0Display results encapsulated in the layout tree.N)rdisplay_reportsr!r=r6s r"r?zMultiReporter.display_reportsYs5& ( (C    ' ' ' ' ( (r$Section | NonecD|jD]}||dS)z1Hook for displaying the messages of the reporter.N)rdisplay_messagesr@s r"rCzMultiReporter.display_messages^s5& ) )C   ( ( ( ( ) )r$modulefilepath str | NonecF|jD]}|||dS)z0Hook called when a module starts to be analysed.N)ron_set_current_module)r!rDrEr6s r"rHz#MultiReporter.on_set_current_modulecs7& 8 8C  % %fh 7 7 7 7 8 8r$statsr previous_statsLinterStats | NonecF|jD]}|||dS)z-Hook called when a module finished analyzing.N)ron_close)r!rIrJr6s r"rMzMultiReporter.on_closehs7 & 0 0C LL / / / / 0 0r$r)rrrrrr)r%r)rrr%r))r%r))r%r.)r%r1)r4r r%r))r7rr%r))r)r:r.r%r))r=r r%r))r=rAr%r))rDr.rErFr%r))rIr rJrKr%r))__name__ __module__ __qualname____doc__name extensionr#propertyrsetterr-r0r3r9r<r?rCrHrMr$r"rrs55 %DI !% * * * * *X ZWWWWZW""""'''X'X ]] ****      (((( )))) 8888 000000r$r) __future__rrcollections.abcrrtypingrrpylint.messagerpylint.reporters.base_reporterr pylint.utilsr pylint.lintr pylint.reporters.ureports.nodesr rrVr$r"r_s #""""" $$$$$$((((((((""""""777777$$$$$$8$$$$$$777777Z0Z0Z0Z0Z0Z0Z0Z0Z0Z0r$