-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Question: new round of changing the "type" suggestion PRs ? #155
Comments
That is correct several MRs, were opened using the template from our wiki. The last time, there were 2 other packages that did the same as this one. Currently we seem to be the only one? The wiki also has a page that lists Known-compatible-PHP_CodeSniffer-standards. We might want to change that to only list well-known packages and link to the packagist type for the rest. Referring to well-known names in the template/MRs also probably won't hurt. After we've updated the template, we could make a long-list and start opening MRs. Although we might want to wait until after we move organisations 🤔 |
Note to self: Organisation move has been completed! Time to make that long list, yo. |
Making the long-list wouldn't have to wait, but I agree sending should be put on hold until we've got everything in order. |
Follow-up question: Is this issue still relevant? Especially since this org is now the official home of PHPCS development. If still relevant, I could have a stab at preparing the long list. |
As this ticket is two years old, I can imagine that the first step should be to update the list in the original issue, i.e. see if and if so, which other Maybe @rodrigoprimo could help with that ? |
@jrfnl, I'd be happy to help, but I'm not sure I understand everything that needs to be done. I can check the list you provided in the original issue and see if the number of packages for each of the types changed.
I'm not sure how I would figure out which other |
@rodrigoprimo Thank you!
The goal of this exercise is to improve the PHPCS end-user experience by making sure that external PHPCS standards use the External standards do not have to External standards which do If I remember correctly, I did a variety of searches on Packagist to find
For the types I found which looked to contain external standards, I would open the page for each of those packages and also click-through to the actual repo to figure out the status, where "status" was a combination of:
Does this help to get you started ? Oh, and no need to let yourself be limited by what I did, feel free to get creative ;-) |
Thanks a lot, @jrfnl. That is super helpful. I will look into this in the next few days. |
I gave this task a first try. I created a spreadsheet in the link below, updating the information about the packages in the original list and including a few more packages for types that I found. https://docs.google.com/spreadsheets/d/1Dz_pKLivmcD_pYmV1m4mHYD0MYu1vdYv4H4eN1HtqBA/edit?usp=sharing To find the new types, I used Packagist API to get the types for all packages ( Here are the new types that I found containing PHPCS custom standards:
It was nice to see that now there are 419 packages using the Here is the full list of Packagist types if anyone wants to take a look as well: Please let me know if there is anything else you would like me to do related to this issue. |
FYI: I've updated the MR text template to better reflect the current situation. |
@Potherca Thanks for that. I saw a few more tweaks to make, but am running into a problem with checking out the wiki as a git repo on Windows as some of the file names used are incompatible with Windows. Have you got any objection to me fixing those file names ? |
Go right ahead. 👍 |
@Potherca Take two: changing those file names means that the URLs to pages on the wiki will change (without redirect as GH doesn't do those for the wikis). Still okay ? (and yes, once updated, I would, of course, also update any links in the README or on other wiki pages to fix the links) |
Yeah, renaming is fine. I wouldn't worry too much about the URLs "breaking". They were mostly for "internal" use anyway. Also, I think if anyone were to land on a dead link, they'd be intelligent enough to just click on the relevant page as a 404 redirect to the Wiki landing page. If nothing else, we could add a index/table-of-contents on the wiki homepage. |
Done ✅ I've gone through the wiki now with a fine tooth comb and made various other fixes. You can see my commits if you check out the wiki repo.
That's automatically there already (on the right hand side of the page). |
At this moment, the plugin very deliberately only registers packages with the
phpcodesniffer-standard
type set in theircomposer.json
file with PHP_CodeSniffer (providing aruleset.xml
file can be found in the package).There are currently 307 packages registered in Packagist which use the
phpcodesniffer-standard
type.When going through Packagist, however, there are a number of other "types" typically used for PHPCS standards:
coding-standard
: 24 packagesphpcs-standard
: 7 packages - most seem to be abandoned, but all seem to be expect to be used with the Goatherd PHPCS Installer (Composer plugin) which seems to have been abandoned 7 years agocoding-standards
: 1 package - is actually a CS-Fixer packagephpcs-coding-standard
: 1 package - PHPCS 1.x package and looks abandonedphpcs-coding-standards
: . package - candidate to suggest changing the typephpcs-ruleset
: 1 package - candidate to suggest changing the typecodesniffer-standard
: 1 package - candidate to suggest changing the typeIf I remember correctly, a couple of years ago, a round of PRs was send in to repos for external PHPCS standards to update the Composer "type". Would it be an idea to selectively do so again ?
The text was updated successfully, but these errors were encountered: