Showing 9 of 14 total issues
Function exports
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (grunt) {
// Show elapsed time at the end
//require('time-grunt')(grunt);
// Load all grunt tasks
require('load-grunt-tasks')(grunt);
Function callServices
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function callServices (serviceNames, db, url, project, context, callback) {
var params, callServicesFor, serviceCalls, finalCallback;
if (!serviceNames || serviceNames.length <= 0) {
return callback(null);
Function activateContextWithProperties
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.activateContextWithProperties = function (params, contextProperties, callback) {
var projectName, name, callServicesOnFinish, paramsLeet;
projectName = params.config.name;
name = params.name;
Function _openCloseContext
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports._openCloseContext = function (params, shouldBeOpen, eventHandlerPropertyName, noContextFoundMsg, callback) {
var projectName, paramsLeet, callServicesOnFinish, contextName;
projectName = params.config.name;
paramsLeet = leet(params);
Function initDb
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.initDb = function (connection, callback) {
var db;
db = arango.Connection(connection);
Function deactivateContext
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.deactivateContext = function (params, callback) {
var projectName, paramsLeet, callServicesOnFinish;
projectName = params.config.name;
paramsLeet = leet(params);
Function getContexts
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.getContexts = function (db, projectName, name, isActive, isOpen, callback) {
Function exports
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
module.exports = function callServices (serviceNames, db, url, project, context, callback) {
Function _openCloseContext
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports._openCloseContext = function (params, shouldBeOpen, eventHandlerPropertyName, noContextFoundMsg, callback) {