grunt-php-cs-fixer-branch
Version:
Grunt plugin for running PHP Coding Standards Fixer in the modified files of the current branch
27 lines (22 loc) • 549 B
JavaScript
/**
* PHP Coding Standards Fixer grunt plugin
*/
;
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
phpcsfixerbranch: {
app: {
dir: ["php/src/Grunt/PhpCodingStandardsFixer/Sample.php", "php/src/Grunt/PhpCodingStandardsFixer/Sample"]
},
options: {
bin: "vendor/bin/php-cs-fixer",
ignoreExitCode: false,
level: "all",
quiet: true
}
}
});
grunt.loadTasks("tasks");
grunt.registerTask("default", ["phpcsfixerbranch"]);
};