Skip to content

Commit

Permalink
Another fix to pretty printer (#3641)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Sep 3, 2024
1 parent 9d9f27c commit 42e3bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cfnlint/formatters/pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def print_matches(self, matches, rules, config):

# ruff: noqa: E501
results.append(
f"Cfn-lint scanned {colored(len(config.templates) if config.templates else 1, color.bold_reset)}"
f"Cfn-lint scanned {colored(1 if config.templates is None else len(config.templates), color.bold_reset)}"
" templates against "
f"{colored(len(rules.used_rules), color.bold_reset)} rules and found "
f'{colored(len([i for i in matches if i.rule.severity.lower() == "error"]), color.error)} '
Expand Down

0 comments on commit 42e3bc5

Please sign in to comment.