zendframework/maintainers

Enhancement: Normalize composer.json

localheinz opened this issue · 2 comments

Unsure if this is good, but after I opened zendframework/zend-inputfilter#165, @froschdesign suggested in zendframework/zend-inputfilter#165 (comment) I suggest localheinz/composer-normalize here.

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

@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.

@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.