We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd959d2 commit a9248ccCopy full SHA for a9248cc
‎codelimit/common/CheckResult.py‎
@@ -34,9 +34,11 @@ def report(self):
34
file_path = str(file)
35
stdout.print(format_measurement(file_path, m), soft_wrap=True)
36
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
39
rich.print(
- f"{len(self.file_list)} files checked, "
- 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'} "
42
f"refactoring."
43
)
44
else:
0 commit comments