eviweb / fuelphp-phpcs

PHP Code Sniffer standard for Fuel PHP
MIT License
27 stars 12 forks source link

Install with composer.json #3

Closed watilde closed 9 years ago

watilde commented 9 years ago

Hi.

Can I install this nice rule with composer? It become more userfull if it can.

e.g. Currently I use this with git submodule, here is my case:

  1. install rule
cd fuel/vendor
git submodule add -f git@github.com:eviweb/fuelphp-phpcs.git
  1. composer script
    "scripts": {
        "lint": [
            "phpcs --standard=fuel/vendor/fuelphp-phpcs/Standards/FuelPHP/ruleset.xml fuel/app"
        ]
    },
  1. run
composer run lint

Thanks.

eviweb commented 9 years ago

Hi @watilde,

thanks for sharing, work is in progress.

Eric

eviweb commented 9 years ago

Hi @watilde,

composer support was added in v1.0.4

Using the code below should answer your needs:

  "scripts": {
        "lint": [
            "./fuel/vendor/bin/fuelphpcs fuel/app"
        ]
    },

Best regards

Eric

watilde commented 9 years ago

@eviweb Thanks for your super quick response! Merci bien :-)

eviweb commented 9 years ago

@watilde,

you're welcome ;-). I hope you will profit of this improvement. Great thanks for your contribution

Eric