mayflower / mo4-coding-standard

MO4 Coding Standard Rules for Codesniffer based on Symfony Coding Standards.
MIT License
17 stars 10 forks source link

Be more DealerDirect/phpcodesniffer-composer-installer friendly #42

Closed xalopp closed 6 years ago

xalopp commented 6 years ago

The composer plugin DealerDirect/phpcodesniffer-composer-installer automatically adds all PHP CodeSniffer Coding standards located in the vendor directory. Unfortunately, phpcs will reports MO4 as mo4-coding-standard because the Coding Standards are named after the Directory that contains the ruleset.xml

So, a new Subdirectory MO4 is required, and all PHP CodeSniffer related code has to move in it.

This will break current installation, but ease up new projects. This would require a release tag with increased major version, since this is a breaking change. It would also be helpful to create a release for the current code, so legacy project can rely on it.

Documentation will also need an update 😺

xalopp commented 6 years ago

implemented #43