Skip to content

Commit 040e446

Browse files
authored
chore(analyzer): change example suggestion code format
- changed example code from inline code formatting to codeblock
1 parent e1cdad7 commit 040e446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _check_format(self, message: str) -> list[CommitIssue]:
8282
CommitIssue(
8383
severity="high",
8484
message="Invalid commit type",
85-
suggestion=f"Use '{likely_type}' for this kind of change\nExample: `{self.example_commits[likely_type]}`",
85+
suggestion=f"Use '{likely_type}' for this kind of change\n└─ Example:\n• ```{self.example_commits[likely_type]}```",
8686
)
8787
]
8888
return []
@@ -232,4 +232,4 @@ def format_analysis(self, commit: dict, issues: list[CommitIssue]) -> str:
232232
"└─ Git Best Practices: <https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project|Git Contributing>"
233233
)
234234

235-
return f"{commit_details}{analysis_section}{suggestions}"
235+
return f"{commit_details}{analysis_section}{suggestions}"

0 commit comments

Comments
 (0)