vindi/vindi-woocommerce

View on GitHub
Gruntfile.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function(grunt) {
  require("phplint").gruntPlugin(grunt);

  grunt.initConfig({
    phplint: {
      options: {
        limit: 10,
        // phpCmd: "/home/scripts/php", // Defaults to php
        stdout: true,
        stderr: true,
        tmpDir: "./.cache/php" // Defaults to os.tmpDir()
      },
      files: ["src/**/*.php", "tests/**/*.php"]
    }
  });

  console.log("CHECKING SYNTAX ERROR...");

  grunt.registerTask("check", ["phplint"]);
};