@@ -316,7 +316,6 @@ def __init__(
316
316
317
317
# Attributes related to stats
318
318
self .stats = LinterStats ()
319
- self .skipped_paths : set [str ] = set ()
320
319
321
320
# Attributes related to (command-line) options and their parsing
322
321
self .options : Options = options + _make_linter_options (self )
@@ -852,7 +851,7 @@ def _get_file_descr_from_stdin(self, filepath: str) -> Iterator[FileItem]:
852
851
self .config .ignore_patterns ,
853
852
self .config .ignore_paths ,
854
853
):
855
- self .skipped_paths . add ( filepath )
854
+ self .stats . skipped += 1
856
855
return
857
856
858
857
try :
@@ -876,7 +875,7 @@ def _iterate_file_descrs(
876
875
for descr in self ._expand_files (files_or_modules ).values ():
877
876
name , filepath , is_arg = descr ["name" ], descr ["path" ], descr ["isarg" ]
878
877
if descr ["isignored" ]:
879
- self .skipped_paths . add ( filepath )
878
+ self .stats . skipped += 1
880
879
elif self .should_analyze_file (name , filepath , is_argument = is_arg ):
881
880
yield FileItem (name , filepath , descr ["basename" ])
882
881
@@ -1148,8 +1147,7 @@ def _report_evaluation(self, verbose: bool = False) -> int | None:
1148
1147
1149
1148
if verbose :
1150
1149
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"
1153
1151
1154
1152
if self .config .score :
1155
1153
sect = report_nodes .EvaluationSection (msg )
0 commit comments