lib/models/container-store.js
Function createContainer
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ContainerStore.prototype.createContainer = function (body) {
return Promise.resolve()
.bind(this)
.then(function () {
if (body.name) {
Function _runFilters
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ContainerStore._runFilters = function (containers, filters) {
Object.keys(filters).forEach(function (filter) {
switch (filter) {
case 'label':
var key = Object.keys(filters[filter])[0]