-
Notifications
You must be signed in to change notification settings - Fork 216
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
Staticcheck fixes #1657
Staticcheck fixes #1657
Conversation
No fallthrough in go
Checking the len already handles nils
Hopefully these are okay...
Hopefully these are okay...
Can't put multiple mains in one package. This might not be desired...
Oh dear I missed the regtests... this might take a bit. Edit. Oh nooooooo |
Yeah I don't think I have the energy for fixing the reg tests tonight lol. I'll try to finish this tomorrow/this weekend. |
@lespea thanks for the PR!! This is great stuff!!! :) \ What I would note is this PR is too big -- it tries to do everything all at once. (I do see the 11 separate commits -- thank you!) And there are various regression-test failures which it's a little tricky to attribute to one mod or the other. Also I'd note that I've tried splitting this up a bit locally, and here are some notes.
Then: Directories of files in this PR -- just running
Then split-ups like this:
Then commit and move on to another directory, etc. Regenerating the test-expect files: Anyway that's the idea of how to split this up. I could up separate PRs of my own, the contents of each of which is doing the above, once for each affected directory ... however I'd love to have your name on the PRs that get merged, not mine :) Here's my suggestion:
Then separately: I'll take a look separately at your mods to How does that sound? |
Hey sorry this has languished... my life has been pretty crazy as of late and I don't really have time to dedicate to coding non-work things atm. I will revisit this when things settle down but honestly I really don't mind if you just do the splitting yourself and I'm not on the pr's. |
All good, thanks so much @lespea!!!!! |
@lespea multiple PRs split out of this and all amazing! There was a spurious fail on the first commit -- I reverted I don't want to touch the static-check warnings about Thank you!!!!! :) |
So there were a bunch of choices I had to make to get all the checks cleared that I wasn't 100% on so... please make sure to go through everything thoroughly! I tried to group things into similar commits to make it easier to go through; though I somehow messed up git so there's a strange merge commit in there /shrug.