Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix linting issues#17

Merged
fabpot merged 1 commit into
symfony-cli:mainfrom
tucksaun:fix-lint
Apr 1, 2026
Merged

fix linting issues#17
fabpot merged 1 commit into
symfony-cli:mainfrom
tucksaun:fix-lint

Conversation

@tucksaun
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 31, 2026 16:45
@tucksaun tucksaun self-assigned this Mar 31, 2026
@tucksaun tucksaun requested a review from fabpot March 31, 2026 16:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates string building in the terminal block formatting helpers to address lint warnings by removing buf.WriteString(fmt.Sprintf(...)) patterns in favor of writing formatted output directly into the buffer.

Changes:

  • Replaced buf.WriteString(fmt.Sprintf(...)) with fmt.Fprintf(&buf, ...) in style.createBlock.
  • Replaced buf.WriteString(fmt.Sprintf(...)) with fmt.Fprintf(&buf, ...) in FormatBlockMessage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
style.go Writes style tags directly into the bytes.Buffer to satisfy linting rules and reduce unnecessary intermediate strings.
block.go Writes format tags directly into the bytes.Buffer in block message formatting to satisfy linting rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fabpot fabpot merged commit d7d373e into symfony-cli:main Apr 1, 2026
15 checks passed
@tucksaun tucksaun deleted the fix-lint branch April 1, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants