Skip to content

Commit a9248cc

Browse files
committed
fix: 🩹 Improve output
1 parent bd959d2 commit a9248cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎codelimit/common/CheckResult.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ def report(self):
3434
file_path = str(file)
3535
stdout.print(format_measurement(file_path, m), soft_wrap=True)
3636
if self.hard_to_maintain > 0 or self.unmaintainable > 0:
37+
file_list_len = len(self.file_list)
38+
need_refactoring = self.hard_to_maintain + self.unmaintainable
3739
rich.print(
38-
f"{len(self.file_list)} files checked, "
39-
f"{self.hard_to_maintain + self.unmaintainable} functions need "
40+
f"{len(self.file_list)} {'file' if file_list_len == 1 else 'files'} checked, "
41+
f"{need_refactoring} {'function needs' if need_refactoring == 1 else 'functions need'} "
4042
f"refactoring."
4143
)
4244
else:

0 commit comments

Comments
 (0)