Runnable/docker-mock

View on GitHub
lib/models/container-store.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

ContainerStore.prototype.createContainer = function (body) {
  return Promise.resolve()
    .bind(this)
    .then(function () {
      if (body.name) {
Severity: Minor
Found in lib/models/container-store.js - About 1 hr to fix

    Function _runFilters has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    ContainerStore._runFilters = function (containers, filters) {
      Object.keys(filters).forEach(function (filter) {
        switch (filter) {
          case 'label':
            var key = Object.keys(filters[filter])[0]
    Severity: Minor
    Found in lib/models/container-store.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status