@@ -316,7 +316,6 @@ def __init__(
316316
317317 # Attributes related to stats
318318 self .stats = LinterStats ()
319- self .skipped_paths : set [str ] = set ()
320319
321320 # Attributes related to (command-line) options and their parsing
322321 self .options : Options = options + _make_linter_options (self )
@@ -852,7 +851,7 @@ def _get_file_descr_from_stdin(self, filepath: str) -> Iterator[FileItem]:
852851 self .config .ignore_patterns ,
853852 self .config .ignore_paths ,
854853 ):
855- self .skipped_paths . add ( filepath )
854+ self .stats . skipped += 1
856855 return
857856
858857 try :
@@ -876,7 +875,7 @@ def _iterate_file_descrs(
876875 for descr in self ._expand_files (files_or_modules ).values ():
877876 name , filepath , is_arg = descr ["name" ], descr ["path" ], descr ["isarg" ]
878877 if descr ["isignored" ]:
879- self .skipped_paths . add ( filepath )
878+ self .stats . skipped += 1
880879 elif self .should_analyze_file (name , filepath , is_argument = is_arg ):
881880 yield FileItem (name , filepath , descr ["basename" ])
882881
@@ -1148,8 +1147,7 @@ def _report_evaluation(self, verbose: bool = False) -> int | None:
11481147
11491148 if verbose :
11501149 checked_files_count = self .stats .node_count ["module" ]
1151- skipped_paths_count = len (self .skipped_paths )
1152- msg += f"\n Checked { checked_files_count } files, skipped { skipped_paths_count } files/modules"
1150+ msg += f"\n Checked { checked_files_count } files, skipped { self .stats .skipped } files/modules"
11531151
11541152 if self .config .score :
11551153 sect = report_nodes .EvaluationSection (msg )
0 commit comments