Skip to content

Commit

Permalink
Merge pull request #38 from rohaquinlop/issue-37
Browse files Browse the repository at this point in the history
feat(cli): #37 no files found
  • Loading branch information
rohaquinlop committed Mar 21, 2024
2 parents 2a59c35 + e6ddeed commit 1c5b23d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion complexipy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def output_summary(
table, has_success, total_complexity = create_table_function_level(
files, max_complexity, details, sort
)
console.print(Align.center(table))

if details == DetailTypes.low and table.row_count < 1:
console.print(f"No {'file' if file_level else 'function'}{'s' if len(files) > 1 else ''} were found with complexity greater than {max_complexity}.")
else:
console.print(Align.center(table))
console.print(f":brain: Total Cognitive Complexity in {path}: {total_complexity}")

return has_success
Expand Down

0 comments on commit 1c5b23d

Please sign in to comment.