Skip to content

Commit

Permalink
Ensure all rich tags are closed (#2585)
Browse files Browse the repository at this point in the history
Fixes: #2571
  • Loading branch information
ssbarnea committed Oct 10, 2022
1 parent bda8d99 commit 66f961c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ansiblelint/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def report_summary( # pylint: disable=too-many-branches,too-many-locals

msg += f": {summary.failures} failure(s), {summary.warnings} warning(s)"
if summary.fixed:
msg += f", and fixed [/]{summary.fixed} issue(s)"
msg += f", and fixed {summary.fixed} issue(s)"
msg += f" on {files_count} files."

console_stderr.print(msg)
Expand Down
4 changes: 1 addition & 3 deletions src/ansiblelint/formatters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ def format(self, match: MatchError) -> str:
result = (
f"[filename]{self._format_path(match.filename or '')}[/][dim]:{match.position}:[/] "
f"[{match.level}][bold]{self.escape(match.tag)}[/bold]"
f": {match.message}"
if not options.quiet
else "[/]"
f"{ f': {match.message}' if not options.quiet else '' }[/]"
)
if match.level != "error":
result += f" [dim][{match.level}]({match.level})[/][/]"
Expand Down

0 comments on commit 66f961c

Please sign in to comment.