8000 simple: preserve import aliases in suggested fixes by dajiaohuang · Pull Request #1763 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

simple: preserve import aliases in suggested fixes - #1763

Open
dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/s1004-preserve-bytes-alias
Open

dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/s1004-preserve-bytes-alias

Conversation

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

S1004 and S1028 preserve package qualifiers from matched bytes.Compare and fmt.Sprintf calls when generating suggested fixes. Aliased-import fixtures cover both checks.

Dot-imported functions keep their diagnostics without an unsafe suggested fix. New dot-import regression fixtures reproduced interface-conversion panics on the previous PR head; checked selector handling fixes both crashes.

Validation: go test ./simple/s1004 ./simple/s1028 passed (four tests); gofmt and git diff --check passed. No whole-repository test claim.

@dajiaohuang dajiaohuang changed the title simple: preserve bytes import alias in S1004 fix simple: preserve import aliases in suggested fixes Oct 1, 2026
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