-
Notifications
You must be signed in to change notification settings - Fork 17
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
Internal: CI code style and psalm #50
Comments
I would be willing to take a stab at this if it's helpful. |
@paulshryock that would be very much appreciated The v5 branch is merged now, so if you could add this now, we could fix any issues psalm identifies in the plugin code and then release it finally. |
@kkmuffme sure thing. Want to assign this Issue to me, and I'll make one or more pull request(s) against the latest |
So to start, I've forked this repo to paulshryock/psalm-plugin-wordpress. I cloned the repo locally, switched to PHP 8.3.0, ran I've got these warnings:
And the rest of the output from Psalm shows 29 errors and 19 other issues.
I will start by clearing up the errors, so once we add Psalm to the continuous integration pipeline, we have a passing pipeline out of the gate. |
Ok good, you need to create a psalm.xml and commit it to the repo so we get some consistency and also fix the errors above
Btw I used php 7.4 since that is the minimum PHP version psalm supports, so we should stick to that. |
@paulshryock fyi all the "internal" errors you don't need to fix - in fact I suggest do suppress them via the psalm config file, as they're caused by the plugin's namespace prior from moving the plugin to psalm and are all false positives. |
Good to know, thanks. I should have something in another day or two. Hope I'm not holding up the release. |
Any approx ETA for this? |
Hi @kkmuffme I'm sorry about the delay. The holidays took over and I didn't get to wrap this up before end of year like I hoped. I will try to pick this up over the weekend and get back to you next week. |
@paulshryock take your time, there's no rush. I released it like it is now to gather some more feedback and so we're more easily able to distinguish between bugs in v3 vs bugs added from code style. |
❤️ Amazing, glad this isn't holding up the release. And thanks for understanding. |
I'm sorry, I thought I would have time to complete this but I haven't, and I don't want to hold this up. I'm going to un-assign myself, in case anyone else wants to pick this up. Sorry for the delay without any movement. If my availability opens up and this is still open and unassigned, I might take another swing at it. |
Add 2 tasks to the CI pipeline:
See psalm's CI config, as that can be reused.
The text was updated successfully, but these errors were encountered: