FOGProject/fog-too

View on GitHub
api/services/PluginService.js

Summary

Maintainability
A
1 hr
Test Coverage

Function registerHooks has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  registerHooks: function(pluginName, next) {
    sails.log.info("Registering [" + pluginName + "] hooks");
    var configFile = path.join(pluginDir, pluginPrefix + pluginName, pluginPackageFile);
    fs.exists(configFile, function(exists) {
      if (!exists) {
Severity: Minor
Found in api/services/PluginService.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status