8000 Fix QF1012 fixes for aliased fmt imports by dajiaohuang · Pull Request #1765 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Fix QF1012 fixes for aliased fmt imports - #1765

Open
dajiaohuang wants to merge 2 commits into
dominikh:masterfrom
dajiaohuang:fix/qf1012-fmt-alias
Open

dajiaohuang wants to merge 2 commits into
dominikh:masterfrom
dajiaohuang:fix/qf1012-fmt-alias

Conversation

@dajiaohuang
@dajiaohuang dajiaohuang commented Oct 1, 2026 •
Copy link
Copy Markdown

QF1012 matches fmt functions by package identity but previously hard-coded the default fmt qualifier in suggested fixes. Use the qualifier from the matched call so aliases such as format produce valid fixes. Add regression coverage for both Write and WriteString cases.

Validation: go test ./quickfix/qf1012 passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0