hoschi/sweetp-service-project-context-manager

View on GitHub

Showing 9 of 14 total issues

Function exports has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (grunt) {
    // Show elapsed time at the end
    //require('time-grunt')(grunt);
    // Load all grunt tasks
    require('load-grunt-tasks')(grunt);
Severity: Major
Found in Gruntfile.js - About 2 hrs to fix

    Function callServices has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function callServices (serviceNames, db, url, project, context, callback) {
        var params, callServicesFor, serviceCalls, finalCallback;
    
        if (!serviceNames || serviceNames.length <= 0) {
            return callback(null);
    Severity: Major
    Found in src/callServices.js - About 2 hrs to fix

      Function activateContextWithProperties has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      exports.activateContextWithProperties = function (params, contextProperties, callback) {
          var projectName, name, callServicesOnFinish, paramsLeet;
      
          projectName = params.config.name;
          name = params.name;
      Severity: Minor
      Found in src/service.js - About 1 hr to fix

        Function _openCloseContext has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        exports._openCloseContext = function (params, shouldBeOpen, eventHandlerPropertyName, noContextFoundMsg, callback) {
            var projectName, paramsLeet, callServicesOnFinish, contextName;
        
            projectName = params.config.name;
            paramsLeet = leet(params);
        Severity: Minor
        Found in src/service.js - About 1 hr to fix

          Function initDb has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          exports.initDb = function (connection, callback) {
              var db;
          
              db = arango.Connection(connection);
          
          
          Severity: Minor
          Found in src/dbHelper.js - About 1 hr to fix

            Function deactivateContext has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            exports.deactivateContext = function (params, callback) {
                var projectName, paramsLeet, callServicesOnFinish;
            
                projectName = params.config.name;
                paramsLeet = leet(params);
            Severity: Minor
            Found in src/service.js - About 1 hr to fix

              Function getContexts has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              exports.getContexts = function (db, projectName, name, isActive, isOpen, callback) {
              Severity: Minor
              Found in src/dbAbstraction.js - About 45 mins to fix

                Function exports has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                module.exports = function callServices (serviceNames, db, url, project, context, callback) {
                Severity: Minor
                Found in src/callServices.js - About 45 mins to fix

                  Function _openCloseContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  exports._openCloseContext = function (params, shouldBeOpen, eventHandlerPropertyName, noContextFoundMsg, callback) {
                  Severity: Minor
                  Found in src/service.js - About 35 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language