UNPKG

grunt-phplint

Version:

A Grunt 4.0 task for running phplint on your php files

31 lines (25 loc) 495 B
module.exports = function(grunt) { 'use strict'; grunt.initConfig({ phplint: { good: ["test/rsrc/*-good.php"], good_nocache: { options: { cache: false }, files: { src: ["test/rsrc/*-good.php"] } }, bad: ["test/rsrc/*-fail.php"], explicit: { options: { phpCmd: "/usr/bin/php" }, src: ["test/rsrc/*-good.php"] } } }); grunt.loadTasks("./tasks"); grunt.registerTask("default", ["phplint:good", "phplint:good_nocache"]); };