A gulp plugin for running PHP Mess Detector.
Derivative work of Dmitriy S. Simushev's gulp-phpcs ##Requirements
##Installation
npm install gulp-phpmd --save-devvar gulp = require('gulp');
var phpmd = require('gulp-phpmd');
gulp.task('default', function () {
return gulp.src(['src/**/*.php', '!src/vendor/**/*.*'])
// Validate code using PHP Mess Detector
.pipe(phpmd({
bin: 'src/vendor/bin/phpmd',
format: 'text',
ruleset: 'unusedcode',
}))
.on('error', console.error)
});Type: String
Default: 'phpmd'
PHP Mess Detector executable.
Type: String
The format of the report, for multiple formats just use a comma separated string.
Type: String
The ruleset to check against
Type: String
pass --mininumpriority to phpmd
Type: String
pass --strict to phpmd
MIT © Higashi Ryohei
