Skip to content

Comments

refactor(lint): extract duplicate help formatting logic#13020

Merged
onbjerg merged 2 commits intofoundry-rs:masterfrom
maximevtush:patch-7
Jan 8, 2026
Merged

refactor(lint): extract duplicate help formatting logic#13020
onbjerg merged 2 commits intofoundry-rs:masterfrom
maximevtush:patch-7

Conversation

@maximevtush
Copy link
Contributor

The same conditional logic for formatting help messages (with/without ANSI escape codes) was duplicated in both LintContext::emit() and LintContext::emit_with_suggestion(). This duplication increases the risk of inconsistent behavior if the logic needs to be modified in the future.

@onbjerg onbjerg added this pull request to the merge queue Jan 8, 2026
Merged via the queue into foundry-rs:master with commit f4918fc Jan 8, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants