code: function loadReporter(reporter) {
      if (!reporter) {
          reporter = module.exports.defaultReporter;
          return (typeof reporter === "function" ? reporter : defaultReporter);
      }
      if (typeof reporter === "function") {
          return reporter;
      }
      if (typeof reporter === "object" && typeof reporter.reporter === "function") {
          return reporter.reporter;
      }
      if (typeof reporter === "string") {
          try {
              return loadReporter(require(reporter));
          } catch (ignore) {}
  
          try {
              return loadReporter(require(path.join("jshint/src/reporters", reporter)));
          } catch (ignore) {}
      }
  
      var err = new gutil.PluginError(pluginName, "Invalid reporter");
      err.code = "ENOTSUPPORTED";
      throw err;
  }
docs: To preserve compatibility with "gulp-jshint", this function was inspired by "gulp-jshint/src/reporters.js"