lib/container.js
Function start
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
commands.start = function(grunt, docker, options, done, tag) {
// Start 1 container with image tag
var startContainer = function(tag, confImage, callback) {
Function action
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
commands[action] = function(grunt, docker, options, done, tag) {
// process 1 container with image tag
var process = function(tag, confImage, callback) {
Function startContainer
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var startContainer = function(tag, confImage, callback) {
grunt.log.subhead('Starting image [' + tag + ']');
async.waterfall([
Function process
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var process = function(tag, confImage, callback) {
grunt.log.subhead(actioning[action] + ' image [' + tag + ']');
async.waterfall([
Consider simplifying this complex logical expression. Open
Open
if (container) {
var dockcontainer = docker.getContainer(container.Id);
if (utils.getContainerStatus(container) === "RUNNING") {
grunt.log
.writeln("Found a matched running container, killed it.");
Function start
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
commands.start = function(grunt, docker, options, done, tag) {
Function action
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
commands[action] = function(grunt, docker, options, done, tag) {