Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion chasten/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ def print_analysis_details(chasten: results.Chasten, verbose: bool = False) -> N
opt_print_log(verbose, blank=constants.markers.Empty_String)
opt_print_log(
verbose,
label=f":tada: Found a total of {len(current_check._matches)} matches for '{check_name}' in {current_source.filename}",
label=f":tada: Found a total of {len(current_check._matches)} matches for '{check_name}' in {current_source.filename}, and {len(current_check.subtotals)} subtotals for '{check_name}' in {current_source.filename}",
)

# iterate through each of the matches and display all of their details
for current_match in current_check._matches: # type: ignore
if isinstance(current_match, pyastgrepsearch.Match): # type: ignore
Expand Down Expand Up @@ -260,3 +261,5 @@ def print_analysis_details(chasten: results.Chasten, verbose: bool = False) -> N
title=f"{current_match.path}:{position_end}:{column_offset}",
),
)
opt_print_log("Sub-total for the number of matches:")
opt_print_log((current_check._matches))