-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gopls/internal/analysis: add fill switch cases code action #476
Conversation
This PR (HEAD: f845a17) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from tricium-prod@appspot.gserviceaccount.com: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
f845a17
to
d362e75
Compare
This PR (HEAD: d362e75) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
Message from Martin: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
bfd0297
to
320bf61
Compare
This PR (HEAD: 320bf61) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
320bf61
to
5700ad1
Compare
This PR (HEAD: 5700ad1) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
5700ad1
to
567689d
Compare
This PR (HEAD: 567689d) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
567689d
to
7bf4ea0
Compare
This PR (HEAD: 7bf4ea0) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
Message from Alan Donovan: Patch Set 11: (19 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
This PR (HEAD: 3fcf757) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
This PR (HEAD: e2e08f6) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
Message from Martin: Patch Set 13: (19 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Alan Donovan: Patch Set 13: (14 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Martin: Patch Set 13: (13 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
672f97b
to
3ad4cf6
Compare
This PR (HEAD: 3ad4cf6) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
Message from Martin: Patch Set 13: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
3ad4cf6
to
c8fda66
Compare
Message from Martin: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
This PR (HEAD: c8fda66) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
Message from Alan Donovan: Patch Set 15: (24 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
1945e56
to
a04dc69
Compare
This PR (HEAD: a04dc69) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/561416. Important tips:
|
Message from Martin: Patch Set 24: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Robert Findley: Patch Set 24: Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Go LUCI: Patch Set 24: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-02-23T18:06:55Z","revision":"acbe50340ae2104b22182fd264662d1a36ea4cba"} Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Go LUCI: Patch Set 24: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Robert Findley: Patch Set 25: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Go LUCI: Patch Set 25: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-02-23T18:24:24Z","revision":"d038623b42e3c4f02d732f0ae8470d1e1453c268"} Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Robert Findley: Patch Set 25: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Go LUCI: Patch Set 25: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Go LUCI: Patch Set 25: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
Message from Robert Findley: Patch Set 25: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/561416. |
This PR adds a code action to fill missing cases on type switches and switches on named types. Rules are defined here: golang/go#65411 (comment). Edit: I added some tests, but I'm sure there are still things to fix so sharing to get some feedback. Fixes golang/go#65411 https://github.com/golang/tools/assets/4250565/1e67c404-e24f-478e-a3df-60a3adfaa9b1 Change-Id: Ie4ef0955d0e7ca130af8980a488b738c812aae4d GitHub-Last-Rev: a04dc69 GitHub-Pull-Request: #476 Reviewed-on: https://go-review.googlesource.com/c/tools/+/561416 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Alan Donovan <adonovan@google.com>
This PR is being closed because golang.org/cl/561416 has been merged. |
This PR adds a code action to fill missing cases on type switches and
switches on named types.
Rules are defined here: golang/go#65411 (comment).
Edit: I added some tests, but I'm sure there are still things to fix so
sharing to get some feedback.
Fixes golang/go#65411
fillswitch2.mov