lib/cli-engine.js
function(name, pluginobject) {
    var pluginNameWithoutPrefix = util.removePluginPrefix(util.removeNameSpace(name));
    if (pluginobject.rules) {
      rules.import(pluginobject.rules, pluginNameWithoutPrefix);
    }
    loadedPlugins[pluginNameWithoutPrefix] = pluginobject;
  }
function(name, pluginobject) {
    var pluginNameWithoutPrefix = util.removePluginPrefix(util.removeNameSpace(name));
    if (pluginobject.rules) {
      rules.import(pluginobject.rules, pluginNameWithoutPrefix);
    }
    loadedPlugins[pluginNameWithoutPrefix] = pluginobject;
  }
function ( name , pluginobject ) { var pluginNameWithoutPrefix = util . removePluginPrefix ( util . removeNameSpace ( name ) ) ; if ( pluginobject . rules ) { rules . import ( pluginobject . rules , pluginNameWithoutPrefix ) ; } loadedPlugins [ pluginNameWithoutPrefix ] = pluginobject ; }
Add a plugin by passing it's configuration
@param {string} name Name of the plugin.
@param {Object} pluginobject Plugin configuration object.
@returns {void}
Add a plugin by passing it s configuration