zendframework / maintainers

Contributors and maintainers information for Zend Framework.
BSD 3-Clause "New" or "Revised" License
50 stars 26 forks source link

Enhancement: Normalize composer.json #49

Open localheinz opened 6 years ago

localheinz commented 6 years ago

Unsure if this is good, but after I opened https://github.com/zendframework/zend-inputfilter/pull/165, @froschdesign suggested in https://github.com/zendframework/zend-inputfilter/pull/165#issuecomment-381826008 I suggest localheinz/composer-normalize here.

Maybe it is useful to keep composer.json consistently formatted and structured across component packages?

michalbundyra commented 6 years ago

@localheinz Have a look on command rebase-doc-templates in that repository. We are doing there something similar, but a bit different. We are conforming composer.json with the template. As I can see your tool is doing a bit more. What I don't like is the order of sections. For example we have all supports links at the bottom of the composer.json file, here, we have it in our order as it is in the template.

localheinz commented 6 years ago

@webimpress

Thank you!

localheinz/composer-normalize reorders sections as they appear in the underlying schema at https://getcomposer.org/schema.json as this is easier as having an opinion about the order of sections, and when a section allows additional properties, they will be found at the end of that section.