Skip to content

Commit

Permalink
feat: add cheerful message when no violations
Browse files Browse the repository at this point in the history
  • Loading branch information
guilatrova committed Sep 12, 2021
1 parent 3c64f36 commit bff695c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tryceratops/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class COLORS:
DESCR = "\033[91m"
CODE = "\033[93m"
ERROR = "\033[91m"
BOLD = "\033[1m"

ENDC = "\033[0m"

Expand Down Expand Up @@ -50,7 +51,11 @@ def _present_status(self):

if self.runner.analyzed_files:
print(f"Processed {self.runner.analyzed_files} files")
print(f"Found {len(self.runner.violations)} violations")

if self.runner.violations:
print(f"Found {len(self.runner.violations)} violations")
else:
print(wrap_color("✨ Everything clean! ✨", COLORS.BOLD))
else:
print("Nothing to check!")

Expand Down

0 comments on commit bff695c

Please sign in to comment.