sirbrillig / phpcs-changed

🐘 Run phpcs on files and only report new warnings/errors compared to the previous version.
MIT License
31 stars 11 forks source link

Extend the default extensions the phpcs-changed checks #27

Closed david-binda closed 4 years ago

david-binda commented 4 years ago

phpcs, by default, checks following file extensions ( see https://github.com/squizlabs/PHP_CodeSniffer/blob/1802f6b3827b66dc392219fdba27dadd2cd7d057/src/Config.php#L482 ):

        $this->extensions      = [
            'php' => 'PHP',
            'inc' => 'PHP',
            'js'  => 'JS',
            'css' => 'CSS',
        ];

while phpcs-changed only supports .php.