我习惯使用类似的东西
npm install grunt-contrib-jshint --save-dev
安装。
然而这并没有奏效:
npm install grunt-contrib-phplint --save-dev
我在这里找到了这些网站:
https://www.npmjs.com/package/phplint
https://github.com/jgable/grunt-phplint
但它看起来与我的其余代码不匹配。我当然需要安装它并修改 Gruntfile.js。
// you must load each module
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// grunt.loadNpmTasks("grunt-phplint"); // from links