SaschaGalley / grunt-phpcs

Grunt plugin for running PHP Code Sniffer.
MIT License
47 stars 25 forks source link

Update docs for multiple directory code sniffing #17

Open stevenmc opened 11 years ago

stevenmc commented 11 years ago

Your docs make no mention of being able to CS multiple directories at once, yet this is available in the command line. Please update your ReadMe to demonstrate the following working code:

    //Code sniff the directories Controller, Model, Event and Config
    //Standard below presumes installation of CakePHP coding standard files
    phpcs: {
        application: {
            dir: 'Controller Model Event Config'
        },
        options: {
            bin: 'phpcs',
            standard: 'CakePHP'
        }
    }
witrin commented 9 years ago

See #34 because it offers the default interface for targets. The option dir is very crud.